Appease Clippy

This commit is contained in:
David Palm
2021-03-25 12:07:54 +01:00
parent 8f5f2102f9
commit 1d2183df24
6 changed files with 20 additions and 24 deletions
+1 -4
View File
@@ -89,10 +89,7 @@ impl Node {
}
pub fn location(&self) -> Option<&NodeLocation> {
match self.location {
Some(ref location) => Some(&**location),
None => None
}
self.location.as_deref()
}
pub fn update_location(&mut self, location: Arc<NodeLocation>) {