Skip to content

Commit c758b36

Browse files
committed
fix clippy warning
Signed-off-by: yjhmelody <465402634@qq.com>
1 parent 7c42a18 commit c758b36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm/src/obj/objint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ pub fn to_int(vm: &VirtualMachine, obj: &PyObjectRef, mut base: u32) -> PyResult
671671
if base == 0 {
672672
base = 10
673673
} else if base < 2 || base > 36 {
674-
return Err(vm.new_value_error(format!("int() base must be >= 2 and <= 36, or 0")));
674+
return Err(vm.new_value_error("int() base must be >= 2 and <= 36, or 0".to_string()));
675675
}
676676

677677
match_class!(obj.clone(),

0 commit comments

Comments
 (0)