Skip to content

Commit 2bad5d2

Browse files
committed
fix clippy
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent ce6807b commit 2bad5d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/src/lzma.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ mod _lzma {
382382

383383
fn py_new(_cls: PyTypeRef, args: Self::Args, vm: &VirtualMachine) -> PyResult {
384384
let preset = args.preset.unwrap_or(PRESET_DEFAULT);
385-
if args.format != FORMAT_XZ as _ && args.check != -1 && args.check != CHECK_NONE as _ {
385+
#[allow(clippy::unnecessary_cast)]
386+
if args.format != FORMAT_XZ as i32 && args.check != -1 && args.check != CHECK_NONE as i32 {
386387
return Err(new_lzma_error(
387388
"Integrity checks are only supported by FORMAT_XZ",
388389
vm,

0 commit comments

Comments
 (0)