8000 Fix clippy lints from rust 1.86 update by arihant2math · Pull Request #5665 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Fix clippy lints from rust 1.86 update #5665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/src/fileutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub mod windows {
.encode_wide()
.collect::<Vec<u16>>()
.split(|&c| c == '.' as u16)
.last()
.next_back()
.and_then(|s| String::from_utf16(s).ok());

if let Some(file_extension) = file_extension {
Expand Down
3 changes: 2 additions & 1 deletion jit/src/instructions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// cspell: disable
use super::{JitCompileError, JitSig, JitType};
use cranelift::codegen::ir::FuncRef;
use cranelift::prelude::*;
Expand Down Expand Up @@ -559,7 +560,7 @@ impl<'a, 'b> FunctionCompiler<'a, 'b> {

Ok(())
}
Instruction::SetupLoop { .. } => {
Instruction::SetupLoop => {
let loop_head = self.builder.create_block();
self.builder.ins().jump(loop_head, &[]);
self.builder.switch_to_block(loop_head);
Expand Down
Loading
0