mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Remove unnecessary mut
This commit is contained in:
parent
78331c36a8
commit
35bea0fe19
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ impl Context {
|
||||||
recip = true;
|
recip = true;
|
||||||
write!(buf, "{}", name).unwrap();
|
write!(buf, "{}", name).unwrap();
|
||||||
} else {
|
} else {
|
||||||
let mut helper = |dim: &Dim, pow: i64, buf: &mut Vec<u8>| {
|
let helper = |dim: &Dim, pow: i64, buf: &mut Vec<u8>| {
|
||||||
let mut map = Unit::new();
|
let mut map = Unit::new();
|
||||||
map.insert(dim.clone(), pow);
|
map.insert(dim.clone(), pow);
|
||||||
if let Some(name) = self.quantities.get(&map) {
|
if let Some(name) = self.quantities.get(&map) {
|
||||||
|
|
Loading…
Reference in a new issue