Skip to content

Commit ee4649d

Browse files
hamirmahalsharkdp
authored andcommitted
refactor: remove unnecessary to_string calls
1 parent 9c778c0 commit ee4649d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numbat/src/value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl std::fmt::Display for Value {
8484
Value::Boolean(b) => write!(f, "{}", b),
8585
Value::String(s) => write!(f, "\"{}\"", s),
8686
Value::DateTime(dt, _) => write!(f, "{:?}", dt),
87-
Value::FunctionReference(r) => write!(f, "{}", r.to_string()),
87+
Value::FunctionReference(r) => write!(f, "{}", r),
8888
}
8989
}
9090
}

numbat/src/vm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ impl Display for Constant {
217217
Constant::Unit(unit) => write!(f, "{}", unit),
218218
Constant::Boolean(val) => write!(f, "{}", val),
219219
Constant::String(val) => write!(f, "\"{}\"", val),
220-
Constant::FunctionReference(inner) => write!(f, "{}", inner.to_string()),
220+
Constant::FunctionReference(inner) => write!(f, "{}", inner),
221221
}
222222
}
223223
}

0 commit comments

Comments
 (0)