mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
Address more clippy carnings
This commit is contained in:
parent
1e87d5a54f
commit
9c5818b2f2
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue