Address more clippy carnings

This commit is contained in:
Colin Benner 2018-11-21 20:15:12 +01:00 committed by Tiffany Bennett
parent 1e87d5a54f
commit 9c5818b2f2

View file

@ -238,7 +238,7 @@ impl Context {
self.units.insert(name.clone(), v);
},
Ok(Value::Substance(sub)) => {
let sub = if sub.properties.name.contains("+") {
let sub = if sub.properties.name.contains('+') {
sub.rename(name.clone())
} else {
sub
@ -350,7 +350,7 @@ impl Context {
properties: res,
}),
});
if let &Some(ref symbol) = symbol {
if let Some(ref symbol) = symbol {
self.substance_symbols.insert(symbol.clone(), name.clone());
}
},