mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 22:10:48 -05:00
Preserve indentation when fixing via LibCST (#2223)
This commit is contained in:
@@ -108,11 +108,17 @@ impl Default for Indentation {
|
||||
}
|
||||
}
|
||||
|
||||
impl Indentation {
|
||||
pub fn as_str(&self) -> &str {
|
||||
self.0.as_str()
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for Indentation {
|
||||
type Target = str;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
self.as_str()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user