mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Upgrade to Rust 1.80 (#12586)
This commit is contained in:
parent
ee103ffb25
commit
138e70bd5c
29 changed files with 57 additions and 48 deletions
|
@ -7,10 +7,10 @@
|
|||
//!
|
||||
//! * [`Format`]: Implemented by objects that can be formatted.
|
||||
//! * [`FormatRule`]: Rule that knows how to format an object of another type. Useful in the situation where
|
||||
//! it's necessary to implement [Format] on an object from another crate. This module defines the
|
||||
//! [`FormatRefWithRule`] and [`FormatOwnedWithRule`] structs to pass an item with its corresponding rule.
|
||||
//! it's necessary to implement [Format] on an object from another crate. This module defines the
|
||||
//! [`FormatRefWithRule`] and [`FormatOwnedWithRule`] structs to pass an item with its corresponding rule.
|
||||
//! * [`FormatWithRule`] implemented by objects that know how to format another type. Useful for implementing
|
||||
//! some reusable formatting logic inside of this module if the type itself doesn't implement [Format]
|
||||
//! some reusable formatting logic inside of this module if the type itself doesn't implement [Format]
|
||||
//!
|
||||
//! ## Formatting Macros
|
||||
//!
|
||||
|
|
|
@ -982,7 +982,7 @@ impl Indentation {
|
|||
/// The behaviour depends on the [`indent_style`][IndentStyle] if this is an [`Indent::Align`]:
|
||||
/// - **Tabs**: `align` is converted into an indent. This results in `level` increasing by two: once for the align, once for the level increment
|
||||
/// - **Spaces**: Increments the `level` by one and keeps the `align` unchanged.
|
||||
/// Keeps any the current value is [`Indent::Align`] and increments the level by one.
|
||||
/// Keeps any the current value is [`Indent::Align`] and increments the level by one.
|
||||
fn increment_level(self, indent_style: IndentStyle) -> Self {
|
||||
match self {
|
||||
Indentation::Level(count) => Indentation::Level(count + 1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue