8000 Fix clippy lints from rust 1.86 update (#5665) · RustPython/RustPython@8063148 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8063148

Browse files
Fix clippy lints from rust 1.86 update (#5665)
* handle rust 1.86 update * fix windows clippy lint * disable cspell under jit/instruction --------- Co-authored-by: Jeong YunWon <jeong@youknowone.org>
1 parent 2bf2332 commit 8063148

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

common/src/fileutils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub mod windows {
7878
.encode_wide()
7979
.collect::<Vec<u16>>()
8080
.split(|&c| c == '.' as u16)
81-
.last()
81+
.next_back()
8282
.and_then(|s| String::from_utf16(s).ok());
8383

8484
if let Some(file_extension) = file_extension {

jit/src/instructions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// cspell: disable
12
use super::{JitCompileError, JitSig, JitType};
23
use cranelift::codegen::ir::FuncRef;
34
use cranelift::prelude::*;
@@ -559,7 +560,7 @@ impl<'a, 'b> FunctionCompiler<'a, 'b> {
559560

560561
Ok(())
561562
}
562-
Instruction::SetupLoop { .. } => {
563+
Instruction::SetupLoop => {
563564
let loop_head = self.builder.create_block();
564565
self.builder.ins().jump(loop_head, &[]);
565566
self.builder.switch_to_block(loop_head);

0 commit comments

Comments
 (0)
0