Skip to content
Draft
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix clippy allow
  • Loading branch information
arihant2math committed Apr 6, 2025
commit 80c1aac298afa5ce06a09494be560c6fb94795fb
2 changes: 1 addition & 1 deletion vm/src/exceptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@

if let Some(text) = maybe_text {
// if text ends with \n, remove it
let rtext = text.as_str().trim_end_matches('\n');

Check warning on line 247 in vm/src/exceptions.rs

View workflow job for this annotation

GitHub Actions / Check Rust code with rustfmt and clippy

Unknown word (rtext)
let l_text = rtext.trim_start_matches([' ', '\n', '\x0c']); // \x0c is \f

Check warning on line 248 in vm/src/exceptions.rs

View workflow job for this annotation

GitHub Actions / Check Rust code with rustfmt and clippy

Unknown word (rtext)
let spaces = (rtext.len() - l_text.len()) as isize;

Check warning on line 249 in vm/src/exceptions.rs

View workflow job for this annotation

GitHub Actions / Check Rust code with rustfmt and clippy

Unknown word (rtext)

writeln!(output, " {}", l_text)?;

Expand Down Expand Up @@ -1240,7 +1240,7 @@

#[pyexception(name, base = "PyBaseException", ctx = "base_exception_group")]
#[derive(Debug)]
#[allow(clippy::unused, clippy::dead_code)]
#[allow(unused, dead_code)]
pub struct PyBaseExceptionGroup {
pub(super) traceback: PyRwLock<Option<PyTracebackRef>>,
pub(super) cause: PyRwLock<Option<PyRef<Self>>>,
Expand Down
Loading