mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 16:41:28 +01:00
cargo fmt
This commit is contained in:
@@ -213,7 +213,11 @@ where
|
||||
|
||||
/// TODO: document
|
||||
fn set_named_obj(&mut self, path: String, to: NamedObject) {
|
||||
assert!(!self.named_objects.contains_key(&path), "tried to create object at existing path: {}", path);
|
||||
assert!(
|
||||
!self.named_objects.contains_key(&path),
|
||||
"tried to create object at existing path: {}",
|
||||
path
|
||||
);
|
||||
|
||||
self.named_objects.insert(path, to);
|
||||
}
|
||||
@@ -306,7 +310,10 @@ where
|
||||
}
|
||||
|
||||
fn compute_path(ns: &[String], this: &str) -> String {
|
||||
assert!(!this.chars().any(|a| a == '/'), "'/' is not allowed in names");
|
||||
assert!(
|
||||
!this.chars().any(|a| a == '/'),
|
||||
"'/' is not allowed in names"
|
||||
);
|
||||
|
||||
let mut name = String::new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user