mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-19 12:16:43 +00:00
Update Rust toolchain to 1.89 (#19807)
This commit is contained in:
parent
b22586fa0e
commit
7dfde3b929
101 changed files with 234 additions and 200 deletions
|
|
@ -193,7 +193,7 @@ pub trait FormatContext {
|
|||
fn options(&self) -> &Self::Options;
|
||||
|
||||
/// Returns the source code from the document that gets formatted.
|
||||
fn source_code(&self) -> SourceCode;
|
||||
fn source_code(&self) -> SourceCode<'_>;
|
||||
}
|
||||
|
||||
/// Options customizing how the source code should be formatted.
|
||||
|
|
@ -239,7 +239,7 @@ impl FormatContext for SimpleFormatContext {
|
|||
&self.options
|
||||
}
|
||||
|
||||
fn source_code(&self) -> SourceCode {
|
||||
fn source_code(&self) -> SourceCode<'_> {
|
||||
SourceCode::new(&self.source_code)
|
||||
}
|
||||
}
|
||||
|
|
@ -326,7 +326,7 @@ where
|
|||
printer.print_with_indent(&self.document, indent)
|
||||
}
|
||||
|
||||
fn create_printer(&self) -> Printer {
|
||||
fn create_printer(&self) -> Printer<'_> {
|
||||
let source_code = self.context.source_code();
|
||||
let print_options = self.context.options().as_print_options();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue