-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Some clippy fixes in the compiler #110124
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
The head ref may contain hidden characters: "\u{1F4CE}-told-me-so"
Changes from all commits
f058d05
54e1309
f00366d
968be98
0a0968b
07cd382
1c75724
5a90de8
6fceb0f
81c320e
4b4948c
e5defd0
5853c28
cab94d2
73417b1
9fc1555
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ impl Deref for Mmap { | |
|
||
impl AsRef<[u8]> for Mmap { | ||
fn as_ref(&self) -> &[u8] { | ||
&*self.0 | ||
&self.0 | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ const RED_ZONE: usize = 100 * 1024; // 100k | |
|
||
// Only the first stack that is pushed, grows exponentially (2^n * STACK_PER_RECURSION) from then | ||
// on. This flag has performance relevant characteristics. Don't set it too high. | ||
const STACK_PER_RECURSION: usize = 1 * 1024 * 1024; // 1MB | ||
const STACK_PER_RECURSION: usize = 1024 * 1024; // 1MB | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TBH, I think clippy is wrong to complain about this. Especially in a Maybe use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wish I agreed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (For context: |
||
|
||
/// Grows the stack on demand to prevent stack overflow. Call this in strategic locations | ||
/// to "break up" recursive calls. E.g. almost any call to `visit_expr` or equivalent can benefit | ||
|
Uh oh!
There was an error while loading. Please reload this page.