Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Jan 18, 2024
1 parent a0d2811 commit 95234a4
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions plugins/zenoh-plugin-storage-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,27 @@ impl StorageRuntimeInner {
required: false,
rest: Default::default(),
})
.map_or_else(|e| log::error!("Cannot spawn static volume '{}': {}", MEMORY_BACKEND_NAME, e), |_| ());
.map_or_else(
|e| {
log::error!(
"Cannot spawn static volume '{}': {}",
MEMORY_BACKEND_NAME,
e
)
},
|_| (),
);
for volume in &volumes {
new_self
.spawn_volume(volume)
.map_or_else(|e| log::error!("Cannot spawn volume '{}': {}", volume.name(), e), |_| ());
new_self.spawn_volume(volume).map_or_else(
|e| log::error!("Cannot spawn volume '{}': {}", volume.name(), e),
|_| (),
);
}
for storage in &storages {
new_self
.spawn_storage(storage)
.map_or_else(|e| log::error!("Cannot spawn storage '{}': {}", storage.name(), e), |_| ());
new_self.spawn_storage(storage).map_or_else(
|e| log::error!("Cannot spawn storage '{}': {}", storage.name(), e),
|_| (),
);
}
Ok(new_self)
}
Expand Down

0 comments on commit 95234a4

Please sign in to comment.