diff --git a/vm/src/builtins/float.rs b/vm/src/builtins/float.rs index 76862aaca..9a7690fd4 100644 --- a/vm/src/builtins/float.rs +++ b/vm/src/builtins/float.rs @@ -180,7 +180,7 @@ fn float_from_string(val: PyObjectRef, vm: &VirtualMachine) -> PyResult { }; float_ops::parse_bytes(b).ok_or_else(|| { val.repr(vm) - .map(|repr| vm.new_value_error(format!("could not convert string to float: '{repr}'"))) + .map(|repr| vm.new_value_error(format!("could not convert string to float: {repr}"))) .unwrap_or_else(|e| e) }) }