update
This commit is contained in:
parent
e7fe303941
commit
6f9048e5b1
6 changed files with 92 additions and 56 deletions
|
@ -1,4 +1,4 @@
|
|||
use std::ops::Deref;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
use json_store::JSONStore;
|
||||
use location::Location;
|
||||
|
@ -49,10 +49,10 @@ async fn rocket() -> _ {
|
|||
.expect("error creating CORS options");
|
||||
|
||||
let itemdb = db::ItemDB::new("./itemdb").await;
|
||||
let locations: JSONStore<Location> = JSONStore::new("./locations");
|
||||
let mut locations: JSONStore<Location> = JSONStore::new("./locations");
|
||||
|
||||
for location in locations.deref() {
|
||||
location.1.clone().add(location.0).await;
|
||||
for location in locations.deref_mut() {
|
||||
location.1.add(location.0).await;
|
||||
}
|
||||
|
||||
let config = config::get_config();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue