Remove unnecessary mut

This commit is contained in:
Tiffany Bennett 2019-10-19 20:31:42 -07:00
parent 78331c36a8
commit 35bea0fe19

View file

@ -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) {