Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2bad5d2

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

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎stdlib/src/lzma.rs

Copy file name to clipboardExpand all lines: stdlib/src/lzma.rs
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.