Skip to content

Commit 307ea78

Browse files
committed
chore: fix clippy
1 parent 027cd91 commit 307ea78

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

crates/biome_css_formatter/tests/language.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ use biome_service::{
1313
#[derive(Default)]
1414
pub struct CssTestFormatLanguage {
1515
_source_type: CssFileSource,
16-
tailwind_directives: bool,
17-
}
18-
19-
impl CssTestFormatLanguage {
20-
pub fn allow_tailwind_directives(mut self) -> Self {
21-
self.tailwind_directives = true;
22-
self
23-
}
2416
}
2517

2618
impl TestFormatLanguage for CssTestFormatLanguage {
@@ -29,12 +21,10 @@ impl TestFormatLanguage for CssTestFormatLanguage {
2921
type FormatLanguage = CssFormatLanguage;
3022

3123
fn parse(&self, text: &str) -> AnyParse {
32-
let mut options = CssParserOptions::default()
24+
let options = CssParserOptions::default()
3325
.allow_wrong_line_comments()
34-
.allow_css_modules();
35-
if self.tailwind_directives {
36-
options = options.allow_tailwind_directives();
37-
}
26+
.allow_css_modules()
27+
.allow_tailwind_directives();
3828

3929
parse_css(text, options).into()
4030
}

crates/biome_css_formatter/tests/spec_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub fn run(spec_input_file: &str, _expected_file: &str, test_directory: &str, _f
5050
};
5151

5252
let options = CssFormatOptions::default();
53-
let language = language::CssTestFormatLanguage::default().allow_tailwind_directives();
53+
let language = language::CssTestFormatLanguage::default();
5454

5555
let snapshot = SpecSnapshot::new(
5656
test_file,

0 commit comments

Comments
 (0)