mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-21 02:50:31 +00:00
Create dedicated is_*_enabled
functions for each preview style (#8988)
This commit is contained in:
parent
7e390d3772
commit
0bda1913d1
7 changed files with 39 additions and 11 deletions
|
@ -119,7 +119,7 @@ impl PyFormatOptions {
|
|||
self.docstring_code
|
||||
}
|
||||
|
||||
pub fn preview(&self) -> PreviewMode {
|
||||
pub const fn preview(&self) -> PreviewMode {
|
||||
self.preview
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue