Skip to content

Commit 8e70394

Browse files
committed
Fix some clippy issues
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
1 parent 8f989e4 commit 8e70394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/vm/vm_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl VirtualMachine {
470470
}
471471

472472
pub fn _invert(&self, a: &PyObject) -> PyResult {
473-
const STR: &'static str = "Bitwise inversion '~' on bool is deprecated and will be removed in Python 3.16. \
473+
const STR: &str = "Bitwise inversion '~' on bool is deprecated and will be removed in Python 3.16. \
474474
This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. \
475475
Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int.";
476476
if a.fast_isinstance(self.ctx.types.bool_type) {

0 commit comments

Comments
 (0)