Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
birchmd committed Sep 11, 2023
1 parent e9599f1 commit e24644b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl TestContext {
let mut storage = Storage::open(storage_path.path()).unwrap();
storage.set_engine_account_id(&engine_account_id).unwrap();
let snapshot = JsonSnapshot::load_from_file(snapshot_path).unwrap();
json_snapshot::initialize_engine_state(&mut storage, snapshot).unwrap();
json_snapshot::initialize_engine_state(&storage, snapshot).unwrap();
Self {
storage,
storage_path,
Expand Down
4 changes: 2 additions & 2 deletions refiner-lib/src/near_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ pub mod tests {
let json_snapshot_data = std::fs::read_to_string(snapshot_path).unwrap();
serde_json::from_str(&json_snapshot_data).unwrap()
};
let mut storage = self.engine_context.storage.as_ref().write().await;
initialize_engine_state(&mut storage, json_snapshot).unwrap();
let storage = self.engine_context.storage.as_ref().write().await;
initialize_engine_state(&storage, json_snapshot).unwrap();
}

pub fn create_stream(self) -> NearStream {
Expand Down

0 comments on commit e24644b

Please sign in to comment.