mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
Upgrade Rust toolchain to 1.83 (#14677)
This commit is contained in:
parent
a6402fb51e
commit
b63c2e126b
63 changed files with 127 additions and 127 deletions
|
@ -905,7 +905,7 @@ struct PrinterState<'a> {
|
|||
fits_queue: Vec<std::slice::Iter<'a, FormatElement>>,
|
||||
}
|
||||
|
||||
impl<'a> PrinterState<'a> {
|
||||
impl PrinterState<'_> {
|
||||
fn with_capacity(capacity: usize) -> Self {
|
||||
Self {
|
||||
buffer: String::with_capacity(capacity),
|
||||
|
@ -1049,8 +1049,6 @@ struct FitsMeasurer<'a, 'print> {
|
|||
bomb: DebugDropBomb,
|
||||
}
|
||||
|
||||
impl<'a, 'print> FitsMeasurer<'a, 'print> {}
|
||||
|
||||
impl<'a, 'print> FitsMeasurer<'a, 'print> {
|
||||
fn new_flat(
|
||||
print_queue: &'print PrintQueue<'a>,
|
||||
|
|
|
@ -145,7 +145,7 @@ impl<'a, 'print> FitsQueue<'a, 'print> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, 'print> Queue<'a> for FitsQueue<'a, 'print> {
|
||||
impl<'a> Queue<'a> for FitsQueue<'a, '_> {
|
||||
fn pop(&mut self) -> Option<&'a FormatElement> {
|
||||
self.queue.pop().or_else(
|
||||
#[cold]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue