Fix the fmt error

This commit is contained in:
janczer
2019-02-08 22:09:42 +01:00
parent 59706538f4
commit ba19732fbb

View File

@@ -298,7 +298,11 @@ fn float_mul(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
.ctx
.new_float(v1 * objint::get_value(i2).to_f64().unwrap()))
} else {
Err(vm.new_type_error(format!("Cannot multiply {} and {}", i.borrow(), i2.borrow())))
Err(vm.new_type_error(format!(
"Cannot multiply {} and {}",
i.borrow(),
i2.borrow()
)))
}
}