mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Respect tab-size
setting in formatter (#8006)
This commit is contained in:
parent
46d5db56cc
commit
4786abac7a
7 changed files with 33 additions and 10 deletions
|
@ -95,7 +95,7 @@ impl std::fmt::Display for IndentStyle {
|
|||
///
|
||||
/// Determines the visual width of a tab character (`\t`) and the number of
|
||||
/// spaces per indent when using [`IndentStyle::Space`].
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, CacheKey)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||
pub struct IndentWidth(NonZeroU8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue