diff --git a/.github/workflows/release_cli.yml b/.github/workflows/release_cli.yml index 4a4e8fe231d8..95244eaf55e6 100644 --- a/.github/workflows/release_cli.yml +++ b/.github/workflows/release_cli.yml @@ -144,7 +144,7 @@ jobs: # Upload the CLI binary as a build artifact - name: Upload CLI artifact - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 with: name: cli-${{ matrix.target }} path: ./dist/biome-* @@ -169,7 +169,7 @@ jobs: run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm - name: Upload WASM artifact - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 with: name: wasm-${{ matrix.target }} path: | diff --git a/.github/workflows/release_js_api.yml b/.github/workflows/release_js_api.yml index 169992845c7d..389f188be3c2 100644 --- a/.github/workflows/release_js_api.yml +++ b/.github/workflows/release_js_api.yml @@ -102,7 +102,7 @@ jobs: pnpm --filter @biomejs/js-api run build - name: Upload JS API artifact - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 with: name: js-api path: | diff --git a/.github/workflows/release_knope.yml b/.github/workflows/release_knope.yml index 86ffbd67eaaa..bca917c9c847 100644 --- a/.github/workflows/release_knope.yml +++ b/.github/workflows/release_knope.yml @@ -131,7 +131,7 @@ jobs: - name: Upload Artifact - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 with: name: cli-${{ matrix.target }} path: ./dist/biome-* @@ -156,7 +156,7 @@ jobs: run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm - name: Upload WASM artifact - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 with: name: wasm-${{ matrix.target }} path: | diff --git a/CHANGELOG.md b/CHANGELOG.md index b8956ac503a0..4aa93e444d78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -87,6 +87,8 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ; ``` +- `noDuplicateProperties` now throws lint errors properly when we use `@supports` (fix [#4756](https://github.com/biomejs/biome/issues/4756)) Contributed by @mehm8128 + ### JavaScript APIs ### Linter @@ -348,6 +350,8 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - Fixed `useSortedClasses` false positive and Supplementary test case ([#3394](https://github.com/biomejs/biome/issues/3394)) Contributed by @hangaoke1 - [noLabelWithoutControl](https://biomejs.dev/linter/rules/no-label-without-control/) detects button tags as input ([#4511])(https://github.com/biomejs/biome/issues/4511). Contributed by @unvalley +- [noUselessFragments](https://biomejs.dev/linter/rules/no-useless-fragments/) now handles `JsxAttributeInitializerClause`, ensuring that fragments inside expressions like ` />` are preserved. ([#4208](https://github.com/biomejs/biome/issues/4208)). Contributed by @MaxtuneLee + ### Parser #### Bug fixes diff --git a/Cargo.toml b/Cargo.toml index cbc74e951ddf..3ca05029c80d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ unused_lifetimes = "warn" unused_macro_rules = "warn" [workspace.lints.clippy] +allow_attributes = "deny" cargo_common_metadata = "allow" empty_docs = "allow" # there are some false positives inside biome_wasm multiple_crate_versions = "allow" @@ -174,7 +175,7 @@ biome_test_utils = { path = "./crates/biome_test_utils" } tests_macros = { path = "./crates/tests_macros" } # Crates needed in the workspace -anyhow = "1.0.94" +anyhow = "1.0.95" bpaf = { version = "0.9.15", features = ["derive"] } camino = "1.1.9" countme = "3.0.1" @@ -189,19 +190,19 @@ ignore = "0.4.23" indexmap = { version = "2.7.0" } insta = "1.41.1" natord = "1.0.9" -oxc_resolver = "1.12.0" +oxc_resolver = "3.0.3" papaya = "0.1.6" proc-macro2 = "1.0.86" quickcheck = "1.0.3" quickcheck_macros = "1.0.0" -quote = "1.0.37" +quote = "1.0.38" rayon = "1.10.0" regex = "1.11.1" rustc-hash = "2.1.0" schemars = { version = "0.8.21", features = ["indexmap2", "smallvec"] } -serde = { version = "1.0.216", features = ["derive"] } +serde = { version = "1.0.217", features = ["derive"] } serde_ini = "0.2.0" -serde_json = "1.0.133" +serde_json = "1.0.134" similar = "2.6.0" smallvec = { version = "1.13.2", features = ["union", "const_new", "serde"] } syn = "1.0.109" @@ -213,7 +214,6 @@ tracing-subscriber = "0.3.19" unicode-bom = "2.0.3" unicode-width = "0.1.12" - [profile.dev.package.biome_wasm] debug = true opt-level = "s" diff --git a/Dockerfile.benchmark b/Dockerfile.benchmark index 8a6714ceacb5..16e0adde8b22 100644 --- a/Dockerfile.benchmark +++ b/Dockerfile.benchmark @@ -1,4 +1,4 @@ -FROM rust:1.82.0@sha256:d9c3c6f1264a547d84560e06ffd79ed7a799ce0bff0980b26cf10d29af888377 +FROM rust:1.83.0@sha256:a45bf1f5d9af0a23b26703b3500d70af1abff7f984a7abef5a104b42c02a292b WORKDIR /usr/src/ # https://github.com/nodesource/distributions diff --git a/benchmark/package.json b/benchmark/package.json index 637c1d98fbed..022cbbdc95fb 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@typescript-eslint/eslint-plugin": "8.18.1", - "dprint": "0.47.6", + "dprint": "0.48.0", "eslint": "9.17.0", "prettier": "3.3.3" } diff --git a/crates/biome_analyze/src/context.rs b/crates/biome_analyze/src/context.rs index 209c47ca3b1d..c2fbf3701d12 100644 --- a/crates/biome_analyze/src/context.rs +++ b/crates/biome_analyze/src/context.rs @@ -24,7 +24,7 @@ impl<'a, R> RuleContext<'a, R> where R: Rule + Sized + 'static, { - #[allow(clippy::too_many_arguments)] + #[expect(clippy::too_many_arguments)] pub fn new( query_result: &'a RuleQueryResult, root: &'a RuleRoot, diff --git a/crates/biome_analyze/src/rule.rs b/crates/biome_analyze/src/rule.rs index 1ce7d8ed74ba..918ec1a2e2ac 100644 --- a/crates/biome_analyze/src/rule.rs +++ b/crates/biome_analyze/src/rule.rs @@ -687,7 +687,7 @@ macro_rules! declare_lint_rule { // This is implemented by calling the `group_category!` macro from the // parent module (that should be declared by a call to `declare_group!`) // and providing it with the name of this rule as a string literal token - #[allow(unused_macros)] + #[expect(unused_macros)] macro_rules! rule_category { () => { super::group_category!( $name ) }; } @@ -740,7 +740,7 @@ macro_rules! declare_syntax_rule { // This is implemented by calling the `group_category!` macro from the // parent module (that should be declared by a call to `declare_group!`) // and providing it with the name of this rule as a string literal token - #[allow(unused_macros)] + #[expect(unused_macros)] macro_rules! rule_category { () => { super::group_category!( $name ) }; } @@ -807,7 +807,7 @@ macro_rules! declare_source_rule { ); /// This macro returns the corresponding [ActionCategory] to use inside the [RuleAction] - #[allow(unused_macros)] + #[expect(unused_macros)] macro_rules! rule_action_category { () => { ActionCategory::Source(SourceActionKind::Other(Cow::Borrowed($name))) }; } @@ -852,7 +852,7 @@ macro_rules! declare_lint_group { // name within this group. // This is implemented by calling the `category_concat!` macro with the // "lint" prefix, the name of this group, and the rule name argument - #[allow(unused_macros)] + #[expect(unused_macros)] macro_rules! group_category { ( $rule_name:tt ) => { $crate::category_concat!( "lint", $name, $rule_name ) }; } @@ -889,7 +889,7 @@ macro_rules! declare_assist_group { // name within this group. // This is implemented by calling the `category_concat!` macro with the // "lint" prefix, the name of this group, and the rule name argument - #[allow(unused_macros)] + #[expect(unused_macros)] macro_rules! group_category { ( $rule_name:tt ) => { $crate::category_concat!( "assist", $name, $rule_name ) }; } @@ -926,7 +926,7 @@ macro_rules! declare_syntax_group { // name within this group. // This is implemented by calling the `category_concat!` macro with the // "lint" prefix, the name of this group, and the rule name argument - #[allow(unused_macros)] + #[expect(unused_macros)] macro_rules! group_category { ( $rule_name:tt ) => { $crate::category_concat!( "syntax", $name, $rule_name ) }; } diff --git a/crates/biome_analyze/src/services.rs b/crates/biome_analyze/src/services.rs index e219ad3a7b8e..142c40e87c4b 100644 --- a/crates/biome_analyze/src/services.rs +++ b/crates/biome_analyze/src/services.rs @@ -32,7 +32,7 @@ impl MissingServicesDiagnostic { } pub trait FromServices: Sized { - #[allow(clippy::result_large_err)] + #[expect(clippy::result_large_err)] fn from_services( rule_key: &RuleKey, services: &ServiceBag, diff --git a/crates/biome_aria_metadata/build.rs b/crates/biome_aria_metadata/build.rs index 320ded5c75e6..2d1255015ad4 100644 --- a/crates/biome_aria_metadata/build.rs +++ b/crates/biome_aria_metadata/build.rs @@ -236,7 +236,6 @@ enum AriaAttributeType { #[derive(Debug, Default, biome_deserialize_macros::Merge, serde::Deserialize)] #[serde(rename_all = "camelCase")] -#[allow(dead_code)] struct ValueDefinition { description: String, is_default: bool, diff --git a/crates/biome_cli/Cargo.toml b/crates/biome_cli/Cargo.toml index a975f8bad091..d18a5770b7d5 100644 --- a/crates/biome_cli/Cargo.toml +++ b/crates/biome_cli/Cargo.toml @@ -60,7 +60,7 @@ tracing-subscriber = { workspace = true, features = ["env-filter", "json"] tracing-tree = "0.4.0" [target.'cfg(unix)'.dependencies] -libc = "0.2.167" +libc = "0.2.169" tokio = { workspace = true, features = ["process"] } [target.'cfg(windows)'.dependencies] diff --git a/crates/biome_cli/src/service/mod.rs b/crates/biome_cli/src/service/mod.rs index b2729cbbb208..88e97e8242b5 100644 --- a/crates/biome_cli/src/service/mod.rs +++ b/crates/biome_cli/src/service/mod.rs @@ -422,7 +422,7 @@ struct JsonRpcRequest

{ #[derive(Debug, Deserialize)] #[serde(deny_unknown_fields)] struct JsonRpcResponse { - #[allow(dead_code)] + #[expect(dead_code)] jsonrpc: Cow<'static, str>, id: u64, result: Option>, @@ -431,10 +431,10 @@ struct JsonRpcResponse { #[derive(Debug, Deserialize)] struct JsonRpcError { - #[allow(dead_code)] + #[expect(dead_code)] code: i64, message: String, - #[allow(dead_code)] + #[expect(dead_code)] data: Option>, } diff --git a/crates/biome_cli/tests/commands/format.rs b/crates/biome_cli/tests/commands/format.rs index 58095b96230c..dd9b6b2682f6 100644 --- a/crates/biome_cli/tests/commands/format.rs +++ b/crates/biome_cli/tests/commands/format.rs @@ -179,14 +179,10 @@ const APPLY_ATTRIBUTE_POSITION_AFTER: &str = r#"; "#; -// Without this, Test (windows-latest) fails with: `warning: constant `DEFAULT_CONFIGURATION_BEFORE` is never used` -#[allow(dead_code)] const DEFAULT_CONFIGURATION_BEFORE: &str = r#"function f() { return { a, b } }"#; -// Without this, Test (windows-latest) fails with: `warning: constant `DEFAULT_CONFIGURATION_AFTER` is never used` -#[allow(dead_code)] const DEFAULT_CONFIGURATION_AFTER: &str = "function f() { return { a, b }; } diff --git a/crates/biome_configuration/src/editorconfig.rs b/crates/biome_configuration/src/editorconfig.rs index ea881857549d..cf92365f5332 100644 --- a/crates/biome_configuration/src/editorconfig.rs +++ b/crates/biome_configuration/src/editorconfig.rs @@ -148,7 +148,7 @@ pub enum EditorconfigValue { } // This is an `Into` because implementing `From` is not possible because you can't implement traits for a type you don't own. -#[allow(clippy::from_over_into)] +#[expect(clippy::from_over_into)] impl Into> for EditorconfigValue { fn into(self) -> Option { match self { diff --git a/crates/biome_configuration/src/lib.rs b/crates/biome_configuration/src/lib.rs index c72d6643386d..e44e1377a470 100644 --- a/crates/biome_configuration/src/lib.rs +++ b/crates/biome_configuration/src/lib.rs @@ -1,7 +1,7 @@ //! This module contains the configuration of `biome.json` //! //! The configuration is divided by "tool", and then it's possible to further customise it -//! by language. The language might further options divided by tool. +//! by language. The language might further option divided by tool. pub mod analyzer; pub mod css; pub mod diagnostics; @@ -413,6 +413,7 @@ impl ConfigurationPathHint { mod test { use oxc_resolver::{FileMetadata, ResolveOptions, ResolverGeneric}; use std::env; + use std::fs::read_link; use std::path::{Path, PathBuf}; #[test] @@ -435,8 +436,8 @@ mod test { Ok(FileMetadata::new(true, false, false)) } - fn canonicalize(&self, _path: &Path) -> std::io::Result { - env::current_dir().unwrap().canonicalize() + fn read_link(&self, path: &Path) -> std::io::Result { + read_link(path) } } diff --git a/crates/biome_css_analyze/src/lint/suspicious/no_shorthand_property_overrides.rs b/crates/biome_css_analyze/src/lint/suspicious/no_shorthand_property_overrides.rs index edf3ae960698..ccc2cb29f82a 100644 --- a/crates/biome_css_analyze/src/lint/suspicious/no_shorthand_property_overrides.rs +++ b/crates/biome_css_analyze/src/lint/suspicious/no_shorthand_property_overrides.rs @@ -107,7 +107,7 @@ impl Visitor for NoDeclarationBlockShorthandPropertyOverridesVisitor { .and_then(|property_node| property_node.name().ok()) { let prop = prop_node.to_trimmed_string(); - #[allow(clippy::disallowed_methods)] + #[expect(clippy::disallowed_methods)] let prop_lowercase = prop.to_lowercase(); let prop_prefix = vender_prefix(&prop_lowercase); diff --git a/crates/biome_css_analyze/tests/spec_tests.rs b/crates/biome_css_analyze/tests/spec_tests.rs index addd51d21efa..41f4d2d6e946 100644 --- a/crates/biome_css_analyze/tests/spec_tests.rs +++ b/crates/biome_css_analyze/tests/spec_tests.rs @@ -107,7 +107,7 @@ fn run_test(input: &'static str, _: &str, _: &str, _: &str) { } } -#[allow(clippy::too_many_arguments)] +#[expect(clippy::too_many_arguments)] pub(crate) fn analyze_and_snap( snapshot: &mut String, input_code: &str, diff --git a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css index 107704483947..4dbe184ad709 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css +++ b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css @@ -42,3 +42,20 @@ a { -webkit-border-radius: 12px; -webkit-border-radius: 10px; } a { color: red !important; color: blue; } a { color: red !important; color: blue !important; } + +a { + @supports (color: pink) { + color: pink; + color: orange; + } +} + +a { + @supports (color: pink) { + color: pink; + &:hover { + color: orange; + color: black; + } + } +} diff --git a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css.snap b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css.snap index 3b56bf377764..060af68b3b48 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css.snap +++ b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/invalid.css.snap @@ -49,6 +49,23 @@ a { color: red !important; color: blue; } a { color: red !important; color: blue !important; } +a { + @supports (color: pink) { + color: pink; + color: orange; + } +} + +a { + @supports (color: pink) { + color: pink; + &:hover { + color: orange; + color: black; + } + } +} + ``` # Diagnostics @@ -370,6 +387,7 @@ invalid.css:44:28 lint/nursery/noDuplicateProperties ━━━━━━━━━ > 44 │ a { color: red !important; color: blue !important; } │ ^^^^^ 45 │ + 46 │ a { i color is already defined here. @@ -378,6 +396,59 @@ invalid.css:44:28 lint/nursery/noDuplicateProperties ━━━━━━━━━ > 44 │ a { color: red !important; color: blue !important; } │ ^^^^^ 45 │ + 46 │ a { + + i Remove or rename the duplicate property to ensure consistent styling. + + +``` + +``` +invalid.css:49:9 lint/nursery/noDuplicateProperties ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + + ! Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally. + + 47 │ @supports (color: pink) { + 48 │ color: pink; + > 49 │ color: orange; + │ ^^^^^ + 50 │ } + 51 │ } + + i color is already defined here. + + 46 │ a { + 47 │ @supports (color: pink) { + > 48 │ color: pink; + │ ^^^^^ + 49 │ color: orange; + 50 │ } + + i Remove or rename the duplicate property to ensure consistent styling. + + +``` + +``` +invalid.css:58:13 lint/nursery/noDuplicateProperties ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + + ! Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally. + + 56 │ &:hover { + 57 │ color: orange; + > 58 │ color: black; + │ ^^^^^ + 59 │ } + 60 │ } + + i color is already defined here. + + 55 │ color: pink; + 56 │ &:hover { + > 57 │ color: orange; + │ ^^^^^ + 58 │ color: black; + 59 │ } i Remove or rename the duplicate property to ensure consistent styling. diff --git a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css index 9c5efe6a3a3c..0135bae93bab 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css +++ b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css @@ -15,6 +15,21 @@ a { color: pink; @media { color: orange; &::before { color: black; } } } a { --custom-property: 0; --custom-property: 1; } +a { + @supports (color: pink) { + color: pink; + } +} + +a { + @supports (color: pink) { + color: pink; + &:hover { + color: orange; + } + } +} + /* TODO */ /* @fontface { src: url(font.eof); diff --git a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css.snap b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css.snap index 3c8650efff49..836d25e01d70 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css.snap +++ b/crates/biome_css_analyze/tests/specs/nursery/noDuplicateProperties/valid.css.snap @@ -21,6 +21,21 @@ a { color: pink; @media { color: orange; &::before { color: black; } } } a { --custom-property: 0; --custom-property: 1; } +a { + @supports (color: pink) { + color: pink; + } +} + +a { + @supports (color: pink) { + color: pink; + &:hover { + color: orange; + } + } +} + /* TODO */ /* @fontface { src: url(font.eof); diff --git a/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css b/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css index a702e5ea94f6..1b6491f6f9c8 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css +++ b/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css @@ -104,11 +104,11 @@ url-prefix(http: //www.w3.org/Style/), domain(mozilla.org), regexp('https:.*') background: white; } } -/* TODO: the parser not supported yet */ -/* @position-try --foo {} + +@position-try --foo {} @view-transition { navigation: auto; -} */ +} /* These at-rules have already been removed from the draft. Support will be provided if there's strong demand*/ /* @scroll-timeline foo {} diff --git a/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css.snap b/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css.snap index a19019e117e7..1ddc3608c08e 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css.snap +++ b/crates/biome_css_analyze/tests/specs/nursery/noUnknownAtRule/valid.css.snap @@ -1,6 +1,7 @@ --- source: crates/biome_css_analyze/tests/spec_tests.rs expression: valid.css +snapshot_kind: text --- # Input ```css @@ -110,11 +111,11 @@ url-prefix(http: //www.w3.org/Style/), domain(mozilla.org), regexp('https:.*') background: white; } } -/* TODO: the parser not supported yet */ -/* @position-try --foo {} + +@position-try --foo {} @view-transition { navigation: auto; -} */ +} /* These at-rules have already been removed from the draft. Support will be provided if there's strong demand*/ /* @scroll-timeline foo {} diff --git a/crates/biome_css_factory/src/generated/node_factory.rs b/crates/biome_css_factory/src/generated/node_factory.rs index 7a186974d9b5..ba3d327f29df 100644 --- a/crates/biome_css_factory/src/generated/node_factory.rs +++ b/crates/biome_css_factory/src/generated/node_factory.rs @@ -1,7 +1,6 @@ //! Generated file, do not edit by hand, see `xtask/codegen` #![allow(clippy::redundant_closure)] -#![allow(clippy::too_many_arguments)] use biome_css_syntax::{ CssSyntaxElement as SyntaxElement, CssSyntaxNode as SyntaxNode, CssSyntaxToken as SyntaxToken, *, @@ -1365,6 +1364,20 @@ pub fn css_percentage(value_token: SyntaxToken, percent_token: SyntaxToken) -> C ], )) } +pub fn css_position_try_at_rule( + position_try_token: SyntaxToken, + name: CssDashedIdentifier, + block: AnyCssDeclarationBlock, +) -> CssPositionTryAtRule { + CssPositionTryAtRule::unwrap_cast(SyntaxNode::new_detached( + CssSyntaxKind::CSS_POSITION_TRY_AT_RULE, + [ + Some(SyntaxElement::Token(position_try_token)), + Some(SyntaxElement::Node(name.into_syntax())), + Some(SyntaxElement::Node(block.into_syntax())), + ], + )) +} pub fn css_property_at_rule( property_token: SyntaxToken, name: CssDashedIdentifier, @@ -2307,6 +2320,18 @@ pub fn css_value_at_rule_named_import_specifier( ], )) } +pub fn css_view_transition_at_rule( + view_transition_token: SyntaxToken, + block: AnyCssDeclarationBlock, +) -> CssViewTransitionAtRule { + CssViewTransitionAtRule::unwrap_cast(SyntaxNode::new_detached( + CssSyntaxKind::CSS_VIEW_TRANSITION_AT_RULE, + [ + Some(SyntaxElement::Token(view_transition_token)), + Some(SyntaxElement::Node(block.into_syntax())), + ], + )) +} pub fn css_bracketed_value_list(items: I) -> CssBracketedValueList where I: IntoIterator, diff --git a/crates/biome_css_factory/src/generated/syntax_factory.rs b/crates/biome_css_factory/src/generated/syntax_factory.rs index 2f2fa8c3560a..0448889a9ff8 100644 --- a/crates/biome_css_factory/src/generated/syntax_factory.rs +++ b/crates/biome_css_factory/src/generated/syntax_factory.rs @@ -1,5 +1,6 @@ //! Generated file, do not edit by hand, see `xtask/codegen` +#![allow(unused_mut)] use biome_css_syntax::{CssSyntaxKind, CssSyntaxKind::*, T, *}; use biome_rowan::{ AstNode, ParsedChildren, RawNodeSlots, RawSyntaxNode, SyntaxFactory, SyntaxKind, @@ -8,7 +9,6 @@ use biome_rowan::{ pub struct CssSyntaxFactory; impl SyntaxFactory for CssSyntaxFactory { type Kind = CssSyntaxKind; - #[allow(unused_mut)] fn make_syntax( kind: Self::Kind, children: ParsedChildren, @@ -2757,6 +2757,39 @@ impl SyntaxFactory for CssSyntaxFactory { } slots.into_node(CSS_PERCENTAGE, children) } + CSS_POSITION_TRY_AT_RULE => { + let mut elements = (&children).into_iter(); + let mut slots: RawNodeSlots<3usize> = RawNodeSlots::default(); + let mut current_element = elements.next(); + if let Some(element) = ¤t_element { + if element.kind() == T![position_try] { + slots.mark_present(); + current_element = elements.next(); + } + } + slots.next_slot(); + if let Some(element) = ¤t_element { + if CssDashedIdentifier::can_cast(element.kind()) { + slots.mark_present(); + current_element = elements.next(); + } + } + slots.next_slot(); + if let Some(element) = ¤t_element { + if AnyCssDeclarationBlock::can_cast(element.kind()) { + slots.mark_present(); + current_element = elements.next(); + } + } + slots.next_slot(); + if current_element.is_some() { + return RawSyntaxNode::new( + CSS_POSITION_TRY_AT_RULE.to_bogus(), + children.into_iter().map(Some), + ); + } + slots.into_node(CSS_POSITION_TRY_AT_RULE, children) + } CSS_PROPERTY_AT_RULE => { let mut elements = (&children).into_iter(); let mut slots: RawNodeSlots<3usize> = RawNodeSlots::default(); @@ -4705,6 +4738,32 @@ impl SyntaxFactory for CssSyntaxFactory { } slots.into_node(CSS_VALUE_AT_RULE_NAMED_IMPORT_SPECIFIER, children) } + CSS_VIEW_TRANSITION_AT_RULE => { + let mut elements = (&children).into_iter(); + let mut slots: RawNodeSlots<2usize> = RawNodeSlots::default(); + let mut current_element = elements.next(); + if let Some(element) = ¤t_element { + if element.kind() == T![view_transition] { + slots.mark_present(); + current_element = elements.next(); + } + } + slots.next_slot(); + if let Some(element) = ¤t_element { + if AnyCssDeclarationBlock::can_cast(element.kind()) { + slots.mark_present(); + current_element = elements.next(); + } + } + slots.next_slot(); + if current_element.is_some() { + return RawSyntaxNode::new( + CSS_VIEW_TRANSITION_AT_RULE.to_bogus(), + children.into_iter().map(Some), + ); + } + slots.into_node(CSS_VIEW_TRANSITION_AT_RULE, children) + } CSS_BRACKETED_VALUE_LIST => { Self::make_node_list_syntax(kind, children, AnyCssCustomIdentifier::can_cast) } diff --git a/crates/biome_css_formatter/src/css/any/at_rule.rs b/crates/biome_css_formatter/src/css/any/at_rule.rs index 291ac081052e..a5b2c94278be 100644 --- a/crates/biome_css_formatter/src/css/any/at_rule.rs +++ b/crates/biome_css_formatter/src/css/any/at_rule.rs @@ -23,6 +23,7 @@ impl FormatRule for FormatAnyCssAtRule { AnyCssAtRule::CssMediaAtRule(node) => node.format().fmt(f), AnyCssAtRule::CssNamespaceAtRule(node) => node.format().fmt(f), AnyCssAtRule::CssPageAtRule(node) => node.format().fmt(f), + AnyCssAtRule::CssPositionTryAtRule(node) => node.format().fmt(f), AnyCssAtRule::CssPropertyAtRule(node) => node.format().fmt(f), AnyCssAtRule::CssScopeAtRule(node) => node.format().fmt(f), AnyCssAtRule::CssStartingStyleAtRule(node) => node.format().fmt(f), @@ -30,6 +31,7 @@ impl FormatRule for FormatAnyCssAtRule { AnyCssAtRule::CssUnknownBlockAtRule(node) => node.format().fmt(f), AnyCssAtRule::CssUnknownValueAtRule(node) => node.format().fmt(f), AnyCssAtRule::CssValueAtRule(node) => node.format().fmt(f), + AnyCssAtRule::CssViewTransitionAtRule(node) => node.format().fmt(f), } } } diff --git a/crates/biome_css_formatter/src/css/bogus/mod.rs b/crates/biome_css_formatter/src/css/bogus/mod.rs index b0a20e6421cc..957ec61cc64a 100644 --- a/crates/biome_css_formatter/src/css/bogus/mod.rs +++ b/crates/biome_css_formatter/src/css/bogus/mod.rs @@ -1,6 +1,6 @@ //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. -#[allow(clippy::module_inception)] +#[expect(clippy::module_inception)] pub(crate) mod bogus; pub(crate) mod bogus_at_rule; pub(crate) mod bogus_block; diff --git a/crates/biome_css_formatter/src/css/statements/mod.rs b/crates/biome_css_formatter/src/css/statements/mod.rs index fe04bbd4dbdd..908dcade781d 100644 --- a/crates/biome_css_formatter/src/css/statements/mod.rs +++ b/crates/biome_css_formatter/src/css/statements/mod.rs @@ -16,6 +16,7 @@ pub(crate) mod margin_at_rule; pub(crate) mod media_at_rule; pub(crate) mod namespace_at_rule; pub(crate) mod page_at_rule; +pub(crate) mod position_try_at_rule; pub(crate) mod property_at_rule; pub(crate) mod scope_at_rule; pub(crate) mod starting_style_at_rule; @@ -23,3 +24,4 @@ pub(crate) mod supports_at_rule; pub(crate) mod unknown_block_at_rule; pub(crate) mod unknown_value_at_rule; pub(crate) mod value_at_rule; +pub(crate) mod view_transition_at_rule; diff --git a/crates/biome_css_formatter/src/css/statements/position_try_at_rule.rs b/crates/biome_css_formatter/src/css/statements/position_try_at_rule.rs new file mode 100644 index 000000000000..5912cdea3482 --- /dev/null +++ b/crates/biome_css_formatter/src/css/statements/position_try_at_rule.rs @@ -0,0 +1,26 @@ +use crate::prelude::*; +use biome_css_syntax::{CssPositionTryAtRule, CssPositionTryAtRuleFields}; +use biome_formatter::write; + +#[derive(Debug, Clone, Default)] +pub(crate) struct FormatCssPositionTryAtRule; +impl FormatNodeRule for FormatCssPositionTryAtRule { + fn fmt_fields(&self, node: &CssPositionTryAtRule, f: &mut CssFormatter) -> FormatResult<()> { + let CssPositionTryAtRuleFields { + position_try_token, + name, + block, + } = node.as_fields(); + + write!( + f, + [ + position_try_token.format(), + space(), + name.format(), + space(), + block.format() + ] + ) + } +} diff --git a/crates/biome_css_formatter/src/css/statements/view_transition_at_rule.rs b/crates/biome_css_formatter/src/css/statements/view_transition_at_rule.rs new file mode 100644 index 000000000000..adcd7f81c9ba --- /dev/null +++ b/crates/biome_css_formatter/src/css/statements/view_transition_at_rule.rs @@ -0,0 +1,16 @@ +use crate::prelude::*; +use biome_css_syntax::{CssViewTransitionAtRule, CssViewTransitionAtRuleFields}; +use biome_formatter::write; + +#[derive(Debug, Clone, Default)] +pub(crate) struct FormatCssViewTransitionAtRule; +impl FormatNodeRule for FormatCssViewTransitionAtRule { + fn fmt_fields(&self, node: &CssViewTransitionAtRule, f: &mut CssFormatter) -> FormatResult<()> { + let CssViewTransitionAtRuleFields { + view_transition_token, + block, + } = node.as_fields(); + + write!(f, [view_transition_token.format(), space(), block.format()]) + } +} diff --git a/crates/biome_css_formatter/src/generated.rs b/crates/biome_css_formatter/src/generated.rs index 76b3680d597b..df2f23ce808a 100644 --- a/crates/biome_css_formatter/src/generated.rs +++ b/crates/biome_css_formatter/src/generated.rs @@ -1,5 +1,6 @@ //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. +#![expect(clippy::default_constructed_unit_structs)] use crate::{ AsFormat, CssFormatContext, CssFormatter, FormatBogusNodeRule, FormatNodeRule, IntoFormat, }; @@ -18,7 +19,6 @@ impl AsFormat for biome_css_syntax::CssAtRule { crate::css::statements::at_rule::FormatCssAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::at_rule::FormatCssAtRule::default(), @@ -31,7 +31,6 @@ impl IntoFormat for biome_css_syntax::CssAtRule { crate::css::statements::at_rule::FormatCssAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::at_rule::FormatCssAtRule::default(), @@ -58,7 +57,6 @@ impl AsFormat for biome_css_syntax::CssAttributeMatcher { crate::css::auxiliary::attribute_matcher::FormatCssAttributeMatcher, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::attribute_matcher::FormatCssAttributeMatcher::default(), @@ -71,7 +69,6 @@ impl IntoFormat for biome_css_syntax::CssAttributeMatcher { crate::css::auxiliary::attribute_matcher::FormatCssAttributeMatcher, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::attribute_matcher::FormatCssAttributeMatcher::default(), @@ -98,7 +95,6 @@ impl AsFormat for biome_css_syntax::CssAttributeMatcherValue { crate::css::auxiliary::attribute_matcher_value::FormatCssAttributeMatcherValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::attribute_matcher_value::FormatCssAttributeMatcherValue::default( @@ -112,7 +108,6 @@ impl IntoFormat for biome_css_syntax::CssAttributeMatcherValue crate::css::auxiliary::attribute_matcher_value::FormatCssAttributeMatcherValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::attribute_matcher_value::FormatCssAttributeMatcherValue::default( @@ -140,7 +135,6 @@ impl AsFormat for biome_css_syntax::CssAttributeName { crate::css::auxiliary::attribute_name::FormatCssAttributeName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::attribute_name::FormatCssAttributeName::default(), @@ -153,7 +147,6 @@ impl IntoFormat for biome_css_syntax::CssAttributeName { crate::css::auxiliary::attribute_name::FormatCssAttributeName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::attribute_name::FormatCssAttributeName::default(), @@ -180,7 +173,6 @@ impl AsFormat for biome_css_syntax::CssAttributeSelector { crate::css::selectors::attribute_selector::FormatCssAttributeSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::attribute_selector::FormatCssAttributeSelector::default(), @@ -193,7 +185,6 @@ impl IntoFormat for biome_css_syntax::CssAttributeSelector { crate::css::selectors::attribute_selector::FormatCssAttributeSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::attribute_selector::FormatCssAttributeSelector::default(), @@ -220,7 +211,6 @@ impl AsFormat for biome_css_syntax::CssBinaryExpression { crate::css::auxiliary::binary_expression::FormatCssBinaryExpression, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::binary_expression::FormatCssBinaryExpression::default(), @@ -233,7 +223,6 @@ impl IntoFormat for biome_css_syntax::CssBinaryExpression { crate::css::auxiliary::binary_expression::FormatCssBinaryExpression, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::binary_expression::FormatCssBinaryExpression::default(), @@ -260,7 +249,6 @@ impl AsFormat for biome_css_syntax::CssBracketedValue { crate::css::auxiliary::bracketed_value::FormatCssBracketedValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::bracketed_value::FormatCssBracketedValue::default(), @@ -273,7 +261,6 @@ impl IntoFormat for biome_css_syntax::CssBracketedValue { crate::css::auxiliary::bracketed_value::FormatCssBracketedValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::bracketed_value::FormatCssBracketedValue::default(), @@ -300,7 +287,6 @@ impl AsFormat for biome_css_syntax::CssCharsetAtRule { crate::css::statements::charset_at_rule::FormatCssCharsetAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::charset_at_rule::FormatCssCharsetAtRule::default(), @@ -313,7 +299,6 @@ impl IntoFormat for biome_css_syntax::CssCharsetAtRule { crate::css::statements::charset_at_rule::FormatCssCharsetAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::charset_at_rule::FormatCssCharsetAtRule::default(), @@ -340,7 +325,6 @@ impl AsFormat for biome_css_syntax::CssClassSelector { crate::css::selectors::class_selector::FormatCssClassSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::class_selector::FormatCssClassSelector::default(), @@ -353,7 +337,6 @@ impl IntoFormat for biome_css_syntax::CssClassSelector { crate::css::selectors::class_selector::FormatCssClassSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::class_selector::FormatCssClassSelector::default(), @@ -371,7 +354,6 @@ impl AsFormat for biome_css_syntax::CssColor { type Format<'a> = FormatRefWithRule<'a, biome_css_syntax::CssColor, crate::css::value::color::FormatCssColor>; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::value::color::FormatCssColor::default()) } } @@ -379,7 +361,6 @@ impl IntoFormat for biome_css_syntax::CssColor { type Format = FormatOwnedWithRule; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::value::color::FormatCssColor::default()) } } @@ -403,7 +384,6 @@ impl AsFormat for biome_css_syntax::CssColorProfileAtRule { crate::css::statements::color_profile_at_rule::FormatCssColorProfileAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::color_profile_at_rule::FormatCssColorProfileAtRule::default(), @@ -416,7 +396,6 @@ impl IntoFormat for biome_css_syntax::CssColorProfileAtRule { crate::css::statements::color_profile_at_rule::FormatCssColorProfileAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::color_profile_at_rule::FormatCssColorProfileAtRule::default(), @@ -443,7 +422,6 @@ impl AsFormat for biome_css_syntax::CssComplexSelector { crate::css::selectors::complex_selector::FormatCssComplexSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::complex_selector::FormatCssComplexSelector::default(), @@ -456,7 +434,6 @@ impl IntoFormat for biome_css_syntax::CssComplexSelector { crate::css::selectors::complex_selector::FormatCssComplexSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::complex_selector::FormatCssComplexSelector::default(), @@ -483,7 +460,6 @@ impl AsFormat for biome_css_syntax::CssComposesImportSpecifier crate::css::auxiliary::composes_import_specifier::FormatCssComposesImportSpecifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: composes_import_specifier :: FormatCssComposesImportSpecifier :: default ()) } } @@ -493,7 +469,6 @@ impl IntoFormat for biome_css_syntax::CssComposesImportSpecifi crate::css::auxiliary::composes_import_specifier::FormatCssComposesImportSpecifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: composes_import_specifier :: FormatCssComposesImportSpecifier :: default ()) } } @@ -517,7 +492,6 @@ impl AsFormat for biome_css_syntax::CssComposesProperty { crate::css::properties::composes_property::FormatCssComposesProperty, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::properties::composes_property::FormatCssComposesProperty::default(), @@ -530,7 +504,6 @@ impl IntoFormat for biome_css_syntax::CssComposesProperty { crate::css::properties::composes_property::FormatCssComposesProperty, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::properties::composes_property::FormatCssComposesProperty::default(), @@ -557,7 +530,6 @@ impl AsFormat for biome_css_syntax::CssComposesPropertyValue { crate::css::auxiliary::composes_property_value::FormatCssComposesPropertyValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::composes_property_value::FormatCssComposesPropertyValue::default( @@ -571,7 +543,6 @@ impl IntoFormat for biome_css_syntax::CssComposesPropertyValue crate::css::auxiliary::composes_property_value::FormatCssComposesPropertyValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::composes_property_value::FormatCssComposesPropertyValue::default( @@ -599,7 +570,6 @@ impl AsFormat for biome_css_syntax::CssCompoundSelector { crate::css::selectors::compound_selector::FormatCssCompoundSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::compound_selector::FormatCssCompoundSelector::default(), @@ -612,7 +582,6 @@ impl IntoFormat for biome_css_syntax::CssCompoundSelector { crate::css::selectors::compound_selector::FormatCssCompoundSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::compound_selector::FormatCssCompoundSelector::default(), @@ -639,7 +608,6 @@ impl AsFormat for biome_css_syntax::CssContainerAndQuery { crate::css::auxiliary::container_and_query::FormatCssContainerAndQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::container_and_query::FormatCssContainerAndQuery::default(), @@ -652,7 +620,6 @@ impl IntoFormat for biome_css_syntax::CssContainerAndQuery { crate::css::auxiliary::container_and_query::FormatCssContainerAndQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::container_and_query::FormatCssContainerAndQuery::default(), @@ -679,7 +646,6 @@ impl AsFormat for biome_css_syntax::CssContainerAtRule { crate::css::statements::container_at_rule::FormatCssContainerAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::container_at_rule::FormatCssContainerAtRule::default(), @@ -692,7 +658,6 @@ impl IntoFormat for biome_css_syntax::CssContainerAtRule { crate::css::statements::container_at_rule::FormatCssContainerAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::container_at_rule::FormatCssContainerAtRule::default(), @@ -719,7 +684,6 @@ impl AsFormat for biome_css_syntax::CssContainerNotQuery { crate::css::auxiliary::container_not_query::FormatCssContainerNotQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::container_not_query::FormatCssContainerNotQuery::default(), @@ -732,7 +696,6 @@ impl IntoFormat for biome_css_syntax::CssContainerNotQuery { crate::css::auxiliary::container_not_query::FormatCssContainerNotQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::container_not_query::FormatCssContainerNotQuery::default(), @@ -759,7 +722,6 @@ impl AsFormat for biome_css_syntax::CssContainerOrQuery { crate::css::auxiliary::container_or_query::FormatCssContainerOrQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::container_or_query::FormatCssContainerOrQuery::default(), @@ -772,7 +734,6 @@ impl IntoFormat for biome_css_syntax::CssContainerOrQuery { crate::css::auxiliary::container_or_query::FormatCssContainerOrQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::container_or_query::FormatCssContainerOrQuery::default(), @@ -799,7 +760,6 @@ impl AsFormat for biome_css_syntax::CssContainerQueryInParens crate::css::auxiliary::container_query_in_parens::FormatCssContainerQueryInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: container_query_in_parens :: FormatCssContainerQueryInParens :: default ()) } } @@ -809,7 +769,6 @@ impl IntoFormat for biome_css_syntax::CssContainerQueryInParen crate::css::auxiliary::container_query_in_parens::FormatCssContainerQueryInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: container_query_in_parens :: FormatCssContainerQueryInParens :: default ()) } } @@ -817,14 +776,12 @@ impl FormatRule < biome_css_syntax :: CssContainerSizeFeatureInParens > for crat impl AsFormat for biome_css_syntax::CssContainerSizeFeatureInParens { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssContainerSizeFeatureInParens , crate :: css :: auxiliary :: container_size_feature_in_parens :: FormatCssContainerSizeFeatureInParens > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: container_size_feature_in_parens :: FormatCssContainerSizeFeatureInParens :: default ()) } } impl IntoFormat for biome_css_syntax::CssContainerSizeFeatureInParens { type Format = FormatOwnedWithRule < biome_css_syntax :: CssContainerSizeFeatureInParens , crate :: css :: auxiliary :: container_size_feature_in_parens :: FormatCssContainerSizeFeatureInParens > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: container_size_feature_in_parens :: FormatCssContainerSizeFeatureInParens :: default ()) } } @@ -848,7 +805,6 @@ impl AsFormat for biome_css_syntax::CssContainerStyleAndQuery crate::css::auxiliary::container_style_and_query::FormatCssContainerStyleAndQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: container_style_and_query :: FormatCssContainerStyleAndQuery :: default ()) } } @@ -858,7 +814,6 @@ impl IntoFormat for biome_css_syntax::CssContainerStyleAndQuer crate::css::auxiliary::container_style_and_query::FormatCssContainerStyleAndQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: container_style_and_query :: FormatCssContainerStyleAndQuery :: default ()) } } @@ -882,7 +837,6 @@ impl AsFormat for biome_css_syntax::CssContainerStyleInParens crate::css::auxiliary::container_style_in_parens::FormatCssContainerStyleInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: container_style_in_parens :: FormatCssContainerStyleInParens :: default ()) } } @@ -892,7 +846,6 @@ impl IntoFormat for biome_css_syntax::CssContainerStyleInParen crate::css::auxiliary::container_style_in_parens::FormatCssContainerStyleInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: container_style_in_parens :: FormatCssContainerStyleInParens :: default ()) } } @@ -916,7 +869,6 @@ impl AsFormat for biome_css_syntax::CssContainerStyleNotQuery crate::css::auxiliary::container_style_not_query::FormatCssContainerStyleNotQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: container_style_not_query :: FormatCssContainerStyleNotQuery :: default ()) } } @@ -926,7 +878,6 @@ impl IntoFormat for biome_css_syntax::CssContainerStyleNotQuer crate::css::auxiliary::container_style_not_query::FormatCssContainerStyleNotQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: container_style_not_query :: FormatCssContainerStyleNotQuery :: default ()) } } @@ -950,7 +901,6 @@ impl AsFormat for biome_css_syntax::CssContainerStyleOrQuery { crate::css::auxiliary::container_style_or_query::FormatCssContainerStyleOrQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: container_style_or_query :: FormatCssContainerStyleOrQuery :: default ()) } } @@ -960,7 +910,6 @@ impl IntoFormat for biome_css_syntax::CssContainerStyleOrQuery crate::css::auxiliary::container_style_or_query::FormatCssContainerStyleOrQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: container_style_or_query :: FormatCssContainerStyleOrQuery :: default ()) } } @@ -980,14 +929,12 @@ impl FormatRule impl AsFormat for biome_css_syntax::CssContainerStyleQueryInParens { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssContainerStyleQueryInParens , crate :: css :: auxiliary :: container_style_query_in_parens :: FormatCssContainerStyleQueryInParens > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: container_style_query_in_parens :: FormatCssContainerStyleQueryInParens :: default ()) } } impl IntoFormat for biome_css_syntax::CssContainerStyleQueryInParens { type Format = FormatOwnedWithRule < biome_css_syntax :: CssContainerStyleQueryInParens , crate :: css :: auxiliary :: container_style_query_in_parens :: FormatCssContainerStyleQueryInParens > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: container_style_query_in_parens :: FormatCssContainerStyleQueryInParens :: default ()) } } @@ -1011,7 +958,6 @@ impl AsFormat for biome_css_syntax::CssCounterStyleAtRule { crate::css::statements::counter_style_at_rule::FormatCssCounterStyleAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::counter_style_at_rule::FormatCssCounterStyleAtRule::default(), @@ -1024,7 +970,6 @@ impl IntoFormat for biome_css_syntax::CssCounterStyleAtRule { crate::css::statements::counter_style_at_rule::FormatCssCounterStyleAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::counter_style_at_rule::FormatCssCounterStyleAtRule::default(), @@ -1051,7 +996,6 @@ impl AsFormat for biome_css_syntax::CssCustomIdentifier { crate::css::value::custom_identifier::FormatCssCustomIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::value::custom_identifier::FormatCssCustomIdentifier::default(), @@ -1064,7 +1008,6 @@ impl IntoFormat for biome_css_syntax::CssCustomIdentifier { crate::css::value::custom_identifier::FormatCssCustomIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::value::custom_identifier::FormatCssCustomIdentifier::default(), @@ -1091,7 +1034,6 @@ impl AsFormat for biome_css_syntax::CssDashedIdentifier { crate::css::value::dashed_identifier::FormatCssDashedIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::value::dashed_identifier::FormatCssDashedIdentifier::default(), @@ -1104,7 +1046,6 @@ impl IntoFormat for biome_css_syntax::CssDashedIdentifier { crate::css::value::dashed_identifier::FormatCssDashedIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::value::dashed_identifier::FormatCssDashedIdentifier::default(), @@ -1131,7 +1072,6 @@ impl AsFormat for biome_css_syntax::CssDeclaration { crate::css::auxiliary::declaration::FormatCssDeclaration, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::declaration::FormatCssDeclaration::default(), @@ -1144,7 +1084,6 @@ impl IntoFormat for biome_css_syntax::CssDeclaration { crate::css::auxiliary::declaration::FormatCssDeclaration, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::declaration::FormatCssDeclaration::default(), @@ -1171,7 +1110,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationBlock { crate::css::auxiliary::declaration_block::FormatCssDeclarationBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::declaration_block::FormatCssDeclarationBlock::default(), @@ -1184,7 +1122,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationBlock { crate::css::auxiliary::declaration_block::FormatCssDeclarationBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::declaration_block::FormatCssDeclarationBlock::default(), @@ -1211,7 +1148,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationImportant { crate::css::auxiliary::declaration_important::FormatCssDeclarationImportant, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::declaration_important::FormatCssDeclarationImportant::default(), @@ -1224,7 +1160,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationImportant crate::css::auxiliary::declaration_important::FormatCssDeclarationImportant, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::declaration_important::FormatCssDeclarationImportant::default(), @@ -1251,7 +1186,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationOrAtRuleBloc crate::css::auxiliary::declaration_or_at_rule_block::FormatCssDeclarationOrAtRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: declaration_or_at_rule_block :: FormatCssDeclarationOrAtRuleBlock :: default ()) } } @@ -1261,7 +1195,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationOrAtRuleBl crate::css::auxiliary::declaration_or_at_rule_block::FormatCssDeclarationOrAtRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: declaration_or_at_rule_block :: FormatCssDeclarationOrAtRuleBlock :: default ()) } } @@ -1285,7 +1218,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationOrRuleBlock crate::css::auxiliary::declaration_or_rule_block::FormatCssDeclarationOrRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: declaration_or_rule_block :: FormatCssDeclarationOrRuleBlock :: default ()) } } @@ -1295,7 +1227,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationOrRuleBloc crate::css::auxiliary::declaration_or_rule_block::FormatCssDeclarationOrRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: declaration_or_rule_block :: FormatCssDeclarationOrRuleBlock :: default ()) } } @@ -1319,7 +1250,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationWithSemicolo crate::css::auxiliary::declaration_with_semicolon::FormatCssDeclarationWithSemicolon, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: declaration_with_semicolon :: FormatCssDeclarationWithSemicolon :: default ()) } } @@ -1329,7 +1259,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationWithSemico crate::css::auxiliary::declaration_with_semicolon::FormatCssDeclarationWithSemicolon, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: declaration_with_semicolon :: FormatCssDeclarationWithSemicolon :: default ()) } } @@ -1353,7 +1282,6 @@ impl AsFormat for biome_css_syntax::CssDocumentAtRule { crate::css::statements::document_at_rule::FormatCssDocumentAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::document_at_rule::FormatCssDocumentAtRule::default(), @@ -1366,7 +1294,6 @@ impl IntoFormat for biome_css_syntax::CssDocumentAtRule { crate::css::statements::document_at_rule::FormatCssDocumentAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::document_at_rule::FormatCssDocumentAtRule::default(), @@ -1393,7 +1320,6 @@ impl AsFormat for biome_css_syntax::CssDocumentCustomMatcher { crate::css::auxiliary::document_custom_matcher::FormatCssDocumentCustomMatcher, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::document_custom_matcher::FormatCssDocumentCustomMatcher::default( @@ -1407,7 +1333,6 @@ impl IntoFormat for biome_css_syntax::CssDocumentCustomMatcher crate::css::auxiliary::document_custom_matcher::FormatCssDocumentCustomMatcher, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::document_custom_matcher::FormatCssDocumentCustomMatcher::default( @@ -1435,7 +1360,6 @@ impl AsFormat for biome_css_syntax::CssEmptyDeclaration { crate::css::auxiliary::empty_declaration::FormatCssEmptyDeclaration, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::empty_declaration::FormatCssEmptyDeclaration::default(), @@ -1448,7 +1372,6 @@ impl IntoFormat for biome_css_syntax::CssEmptyDeclaration { crate::css::auxiliary::empty_declaration::FormatCssEmptyDeclaration, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::empty_declaration::FormatCssEmptyDeclaration::default(), @@ -1475,7 +1398,6 @@ impl AsFormat for biome_css_syntax::CssFontFaceAtRule { crate::css::statements::font_face_at_rule::FormatCssFontFaceAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::font_face_at_rule::FormatCssFontFaceAtRule::default(), @@ -1488,7 +1410,6 @@ impl IntoFormat for biome_css_syntax::CssFontFaceAtRule { crate::css::statements::font_face_at_rule::FormatCssFontFaceAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::font_face_at_rule::FormatCssFontFaceAtRule::default(), @@ -1515,7 +1436,6 @@ impl AsFormat for biome_css_syntax::CssFontFamilyName { crate::css::auxiliary::font_family_name::FormatCssFontFamilyName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::font_family_name::FormatCssFontFamilyName::default(), @@ -1528,7 +1448,6 @@ impl IntoFormat for biome_css_syntax::CssFontFamilyName { crate::css::auxiliary::font_family_name::FormatCssFontFamilyName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::font_family_name::FormatCssFontFamilyName::default(), @@ -1555,7 +1474,6 @@ impl AsFormat for biome_css_syntax::CssFontFeatureValuesAtRule crate::css::statements::font_feature_values_at_rule::FormatCssFontFeatureValuesAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: statements :: font_feature_values_at_rule :: FormatCssFontFeatureValuesAtRule :: default ()) } } @@ -1565,7 +1483,6 @@ impl IntoFormat for biome_css_syntax::CssFontFeatureValuesAtRu crate::css::statements::font_feature_values_at_rule::FormatCssFontFeatureValuesAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: statements :: font_feature_values_at_rule :: FormatCssFontFeatureValuesAtRule :: default ()) } } @@ -1589,7 +1506,6 @@ impl AsFormat for biome_css_syntax::CssFontFeatureValuesBlock crate::css::auxiliary::font_feature_values_block::FormatCssFontFeatureValuesBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: font_feature_values_block :: FormatCssFontFeatureValuesBlock :: default ()) } } @@ -1599,7 +1515,6 @@ impl IntoFormat for biome_css_syntax::CssFontFeatureValuesBloc crate::css::auxiliary::font_feature_values_block::FormatCssFontFeatureValuesBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: font_feature_values_block :: FormatCssFontFeatureValuesBlock :: default ()) } } @@ -1623,7 +1538,6 @@ impl AsFormat for biome_css_syntax::CssFontFeatureValuesItem { crate::css::auxiliary::font_feature_values_item::FormatCssFontFeatureValuesItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: font_feature_values_item :: FormatCssFontFeatureValuesItem :: default ()) } } @@ -1633,7 +1547,6 @@ impl IntoFormat for biome_css_syntax::CssFontFeatureValuesItem crate::css::auxiliary::font_feature_values_item::FormatCssFontFeatureValuesItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: font_feature_values_item :: FormatCssFontFeatureValuesItem :: default ()) } } @@ -1657,7 +1570,6 @@ impl AsFormat for biome_css_syntax::CssFontPaletteValuesAtRule crate::css::statements::font_palette_values_at_rule::FormatCssFontPaletteValuesAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: statements :: font_palette_values_at_rule :: FormatCssFontPaletteValuesAtRule :: default ()) } } @@ -1667,7 +1579,6 @@ impl IntoFormat for biome_css_syntax::CssFontPaletteValuesAtRu crate::css::statements::font_palette_values_at_rule::FormatCssFontPaletteValuesAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: statements :: font_palette_values_at_rule :: FormatCssFontPaletteValuesAtRule :: default ()) } } @@ -1687,7 +1598,6 @@ impl AsFormat for biome_css_syntax::CssFunction { crate::css::auxiliary::function::FormatCssFunction, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::function::FormatCssFunction::default(), @@ -1700,7 +1610,6 @@ impl IntoFormat for biome_css_syntax::CssFunction { crate::css::auxiliary::function::FormatCssFunction, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::function::FormatCssFunction::default(), @@ -1727,7 +1636,6 @@ impl AsFormat for biome_css_syntax::CssGenericDelimiter { crate::css::auxiliary::generic_delimiter::FormatCssGenericDelimiter, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::generic_delimiter::FormatCssGenericDelimiter::default(), @@ -1740,7 +1648,6 @@ impl IntoFormat for biome_css_syntax::CssGenericDelimiter { crate::css::auxiliary::generic_delimiter::FormatCssGenericDelimiter, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::generic_delimiter::FormatCssGenericDelimiter::default(), @@ -1767,7 +1674,6 @@ impl AsFormat for biome_css_syntax::CssGenericProperty { crate::css::properties::generic_property::FormatCssGenericProperty, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::properties::generic_property::FormatCssGenericProperty::default(), @@ -1780,7 +1686,6 @@ impl IntoFormat for biome_css_syntax::CssGenericProperty { crate::css::properties::generic_property::FormatCssGenericProperty, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::properties::generic_property::FormatCssGenericProperty::default(), @@ -1807,7 +1712,6 @@ impl AsFormat for biome_css_syntax::CssIdSelector { crate::css::selectors::id_selector::FormatCssIdSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::id_selector::FormatCssIdSelector::default(), @@ -1820,7 +1724,6 @@ impl IntoFormat for biome_css_syntax::CssIdSelector { crate::css::selectors::id_selector::FormatCssIdSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::id_selector::FormatCssIdSelector::default(), @@ -1847,7 +1750,6 @@ impl AsFormat for biome_css_syntax::CssIdentifier { crate::css::value::identifier::FormatCssIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::value::identifier::FormatCssIdentifier::default(), @@ -1860,7 +1762,6 @@ impl IntoFormat for biome_css_syntax::CssIdentifier { crate::css::value::identifier::FormatCssIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::value::identifier::FormatCssIdentifier::default(), @@ -1887,7 +1788,6 @@ impl AsFormat for biome_css_syntax::CssImportAnonymousLayer { crate::css::auxiliary::import_anonymous_layer::FormatCssImportAnonymousLayer, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::import_anonymous_layer::FormatCssImportAnonymousLayer::default(), @@ -1900,7 +1800,6 @@ impl IntoFormat for biome_css_syntax::CssImportAnonymousLayer crate::css::auxiliary::import_anonymous_layer::FormatCssImportAnonymousLayer, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::import_anonymous_layer::FormatCssImportAnonymousLayer::default(), @@ -1927,7 +1826,6 @@ impl AsFormat for biome_css_syntax::CssImportAtRule { crate::css::statements::import_at_rule::FormatCssImportAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::import_at_rule::FormatCssImportAtRule::default(), @@ -1940,7 +1838,6 @@ impl IntoFormat for biome_css_syntax::CssImportAtRule { crate::css::statements::import_at_rule::FormatCssImportAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::import_at_rule::FormatCssImportAtRule::default(), @@ -1967,7 +1864,6 @@ impl AsFormat for biome_css_syntax::CssImportNamedLayer { crate::css::auxiliary::import_named_layer::FormatCssImportNamedLayer, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::import_named_layer::FormatCssImportNamedLayer::default(), @@ -1980,7 +1876,6 @@ impl IntoFormat for biome_css_syntax::CssImportNamedLayer { crate::css::auxiliary::import_named_layer::FormatCssImportNamedLayer, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::import_named_layer::FormatCssImportNamedLayer::default(), @@ -2007,7 +1902,6 @@ impl AsFormat for biome_css_syntax::CssImportSupports { crate::css::auxiliary::import_supports::FormatCssImportSupports, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::import_supports::FormatCssImportSupports::default(), @@ -2020,7 +1914,6 @@ impl IntoFormat for biome_css_syntax::CssImportSupports { crate::css::auxiliary::import_supports::FormatCssImportSupports, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::import_supports::FormatCssImportSupports::default(), @@ -2047,7 +1940,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesAtRule { crate::css::statements::keyframes_at_rule::FormatCssKeyframesAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::keyframes_at_rule::FormatCssKeyframesAtRule::default(), @@ -2060,7 +1952,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesAtRule { crate::css::statements::keyframes_at_rule::FormatCssKeyframesAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::keyframes_at_rule::FormatCssKeyframesAtRule::default(), @@ -2087,7 +1978,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesBlock { crate::css::auxiliary::keyframes_block::FormatCssKeyframesBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::keyframes_block::FormatCssKeyframesBlock::default(), @@ -2100,7 +1990,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesBlock { crate::css::auxiliary::keyframes_block::FormatCssKeyframesBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::keyframes_block::FormatCssKeyframesBlock::default(), @@ -2127,7 +2016,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesIdentSelector crate::css::selectors::keyframes_ident_selector::FormatCssKeyframesIdentSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: keyframes_ident_selector :: FormatCssKeyframesIdentSelector :: default ()) } } @@ -2137,7 +2025,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesIdentSelecto crate::css::selectors::keyframes_ident_selector::FormatCssKeyframesIdentSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: keyframes_ident_selector :: FormatCssKeyframesIdentSelector :: default ()) } } @@ -2161,7 +2048,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesItem { crate::css::auxiliary::keyframes_item::FormatCssKeyframesItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::keyframes_item::FormatCssKeyframesItem::default(), @@ -2174,7 +2060,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesItem { crate::css::auxiliary::keyframes_item::FormatCssKeyframesItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::keyframes_item::FormatCssKeyframesItem::default(), @@ -2201,7 +2086,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesPercentageSele crate::css::selectors::keyframes_percentage_selector::FormatCssKeyframesPercentageSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: keyframes_percentage_selector :: FormatCssKeyframesPercentageSelector :: default ()) } } @@ -2211,7 +2095,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesPercentageSe crate::css::selectors::keyframes_percentage_selector::FormatCssKeyframesPercentageSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: keyframes_percentage_selector :: FormatCssKeyframesPercentageSelector :: default ()) } } @@ -2235,7 +2118,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesScopeFunction crate::css::auxiliary::keyframes_scope_function::FormatCssKeyframesScopeFunction, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: keyframes_scope_function :: FormatCssKeyframesScopeFunction :: default ()) } } @@ -2245,7 +2127,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesScopeFunctio crate::css::auxiliary::keyframes_scope_function::FormatCssKeyframesScopeFunction, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: keyframes_scope_function :: FormatCssKeyframesScopeFunction :: default ()) } } @@ -2269,7 +2150,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesScopePrefix { crate::css::auxiliary::keyframes_scope_prefix::FormatCssKeyframesScopePrefix, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::keyframes_scope_prefix::FormatCssKeyframesScopePrefix::default(), @@ -2282,7 +2162,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesScopePrefix crate::css::auxiliary::keyframes_scope_prefix::FormatCssKeyframesScopePrefix, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::keyframes_scope_prefix::FormatCssKeyframesScopePrefix::default(), @@ -2309,7 +2188,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesScopedName { crate::css::auxiliary::keyframes_scoped_name::FormatCssKeyframesScopedName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::keyframes_scoped_name::FormatCssKeyframesScopedName::default(), @@ -2322,7 +2200,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesScopedName { crate::css::auxiliary::keyframes_scoped_name::FormatCssKeyframesScopedName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::keyframes_scoped_name::FormatCssKeyframesScopedName::default(), @@ -2349,7 +2226,6 @@ impl AsFormat for biome_css_syntax::CssLayerAtRule { crate::css::statements::layer_at_rule::FormatCssLayerAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::layer_at_rule::FormatCssLayerAtRule::default(), @@ -2362,7 +2238,6 @@ impl IntoFormat for biome_css_syntax::CssLayerAtRule { crate::css::statements::layer_at_rule::FormatCssLayerAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::layer_at_rule::FormatCssLayerAtRule::default(), @@ -2389,7 +2264,6 @@ impl AsFormat for biome_css_syntax::CssLayerDeclaration { crate::css::auxiliary::layer_declaration::FormatCssLayerDeclaration, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::layer_declaration::FormatCssLayerDeclaration::default(), @@ -2402,7 +2276,6 @@ impl IntoFormat for biome_css_syntax::CssLayerDeclaration { crate::css::auxiliary::layer_declaration::FormatCssLayerDeclaration, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::layer_declaration::FormatCssLayerDeclaration::default(), @@ -2429,7 +2302,6 @@ impl AsFormat for biome_css_syntax::CssLayerReference { crate::css::auxiliary::layer_reference::FormatCssLayerReference, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::layer_reference::FormatCssLayerReference::default(), @@ -2442,7 +2314,6 @@ impl IntoFormat for biome_css_syntax::CssLayerReference { crate::css::auxiliary::layer_reference::FormatCssLayerReference, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::layer_reference::FormatCssLayerReference::default(), @@ -2453,14 +2324,12 @@ impl FormatRule < biome_css_syntax :: CssListOfComponentValuesExpression > for c impl AsFormat for biome_css_syntax::CssListOfComponentValuesExpression { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssListOfComponentValuesExpression , crate :: css :: auxiliary :: list_of_component_values_expression :: FormatCssListOfComponentValuesExpression > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: list_of_component_values_expression :: FormatCssListOfComponentValuesExpression :: default ()) } } impl IntoFormat for biome_css_syntax::CssListOfComponentValuesExpression { type Format = FormatOwnedWithRule < biome_css_syntax :: CssListOfComponentValuesExpression , crate :: css :: auxiliary :: list_of_component_values_expression :: FormatCssListOfComponentValuesExpression > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: list_of_component_values_expression :: FormatCssListOfComponentValuesExpression :: default ()) } } @@ -2484,7 +2353,6 @@ impl AsFormat for biome_css_syntax::CssMarginAtRule { crate::css::statements::margin_at_rule::FormatCssMarginAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::margin_at_rule::FormatCssMarginAtRule::default(), @@ -2497,7 +2365,6 @@ impl IntoFormat for biome_css_syntax::CssMarginAtRule { crate::css::statements::margin_at_rule::FormatCssMarginAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::margin_at_rule::FormatCssMarginAtRule::default(), @@ -2524,7 +2391,6 @@ impl AsFormat for biome_css_syntax::CssMediaAndCondition { crate::css::auxiliary::media_and_condition::FormatCssMediaAndCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_and_condition::FormatCssMediaAndCondition::default(), @@ -2537,7 +2403,6 @@ impl IntoFormat for biome_css_syntax::CssMediaAndCondition { crate::css::auxiliary::media_and_condition::FormatCssMediaAndCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_and_condition::FormatCssMediaAndCondition::default(), @@ -2564,7 +2429,6 @@ impl AsFormat for biome_css_syntax::CssMediaAndTypeQuery { crate::css::auxiliary::media_and_type_query::FormatCssMediaAndTypeQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_and_type_query::FormatCssMediaAndTypeQuery::default(), @@ -2577,7 +2441,6 @@ impl IntoFormat for biome_css_syntax::CssMediaAndTypeQuery { crate::css::auxiliary::media_and_type_query::FormatCssMediaAndTypeQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_and_type_query::FormatCssMediaAndTypeQuery::default(), @@ -2604,7 +2467,6 @@ impl AsFormat for biome_css_syntax::CssMediaAtRule { crate::css::statements::media_at_rule::FormatCssMediaAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::media_at_rule::FormatCssMediaAtRule::default(), @@ -2617,7 +2479,6 @@ impl IntoFormat for biome_css_syntax::CssMediaAtRule { crate::css::statements::media_at_rule::FormatCssMediaAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::media_at_rule::FormatCssMediaAtRule::default(), @@ -2644,7 +2505,6 @@ impl AsFormat for biome_css_syntax::CssMediaConditionInParens crate::css::auxiliary::media_condition_in_parens::FormatCssMediaConditionInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: media_condition_in_parens :: FormatCssMediaConditionInParens :: default ()) } } @@ -2654,7 +2514,6 @@ impl IntoFormat for biome_css_syntax::CssMediaConditionInParen crate::css::auxiliary::media_condition_in_parens::FormatCssMediaConditionInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: media_condition_in_parens :: FormatCssMediaConditionInParens :: default ()) } } @@ -2678,7 +2537,6 @@ impl AsFormat for biome_css_syntax::CssMediaConditionQuery { crate::css::auxiliary::media_condition_query::FormatCssMediaConditionQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_condition_query::FormatCssMediaConditionQuery::default(), @@ -2691,7 +2549,6 @@ impl IntoFormat for biome_css_syntax::CssMediaConditionQuery { crate::css::auxiliary::media_condition_query::FormatCssMediaConditionQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_condition_query::FormatCssMediaConditionQuery::default(), @@ -2718,7 +2575,6 @@ impl AsFormat for biome_css_syntax::CssMediaFeatureInParens { crate::css::auxiliary::media_feature_in_parens::FormatCssMediaFeatureInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_feature_in_parens::FormatCssMediaFeatureInParens::default( @@ -2732,7 +2588,6 @@ impl IntoFormat for biome_css_syntax::CssMediaFeatureInParens crate::css::auxiliary::media_feature_in_parens::FormatCssMediaFeatureInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_feature_in_parens::FormatCssMediaFeatureInParens::default( @@ -2760,7 +2615,6 @@ impl AsFormat for biome_css_syntax::CssMediaNotCondition { crate::css::auxiliary::media_not_condition::FormatCssMediaNotCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_not_condition::FormatCssMediaNotCondition::default(), @@ -2773,7 +2627,6 @@ impl IntoFormat for biome_css_syntax::CssMediaNotCondition { crate::css::auxiliary::media_not_condition::FormatCssMediaNotCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_not_condition::FormatCssMediaNotCondition::default(), @@ -2800,7 +2653,6 @@ impl AsFormat for biome_css_syntax::CssMediaOrCondition { crate::css::auxiliary::media_or_condition::FormatCssMediaOrCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_or_condition::FormatCssMediaOrCondition::default(), @@ -2813,7 +2665,6 @@ impl IntoFormat for biome_css_syntax::CssMediaOrCondition { crate::css::auxiliary::media_or_condition::FormatCssMediaOrCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_or_condition::FormatCssMediaOrCondition::default(), @@ -2836,7 +2687,6 @@ impl AsFormat for biome_css_syntax::CssMediaType { crate::css::auxiliary::media_type::FormatCssMediaType, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_type::FormatCssMediaType::default(), @@ -2849,7 +2699,6 @@ impl IntoFormat for biome_css_syntax::CssMediaType { crate::css::auxiliary::media_type::FormatCssMediaType, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_type::FormatCssMediaType::default(), @@ -2876,7 +2725,6 @@ impl AsFormat for biome_css_syntax::CssMediaTypeQuery { crate::css::auxiliary::media_type_query::FormatCssMediaTypeQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::media_type_query::FormatCssMediaTypeQuery::default(), @@ -2889,7 +2737,6 @@ impl IntoFormat for biome_css_syntax::CssMediaTypeQuery { crate::css::auxiliary::media_type_query::FormatCssMediaTypeQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::media_type_query::FormatCssMediaTypeQuery::default(), @@ -2916,7 +2763,6 @@ impl AsFormat for biome_css_syntax::CssMetavariable { crate::css::auxiliary::metavariable::FormatCssMetavariable, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::metavariable::FormatCssMetavariable::default(), @@ -2929,7 +2775,6 @@ impl IntoFormat for biome_css_syntax::CssMetavariable { crate::css::auxiliary::metavariable::FormatCssMetavariable, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::metavariable::FormatCssMetavariable::default(), @@ -2956,7 +2801,6 @@ impl AsFormat for biome_css_syntax::CssNamedNamespacePrefix { crate::css::auxiliary::named_namespace_prefix::FormatCssNamedNamespacePrefix, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::named_namespace_prefix::FormatCssNamedNamespacePrefix::default(), @@ -2969,7 +2813,6 @@ impl IntoFormat for biome_css_syntax::CssNamedNamespacePrefix crate::css::auxiliary::named_namespace_prefix::FormatCssNamedNamespacePrefix, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::named_namespace_prefix::FormatCssNamedNamespacePrefix::default(), @@ -2992,7 +2835,6 @@ impl AsFormat for biome_css_syntax::CssNamespace { crate::css::auxiliary::namespace::FormatCssNamespace, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::namespace::FormatCssNamespace::default(), @@ -3005,7 +2847,6 @@ impl IntoFormat for biome_css_syntax::CssNamespace { crate::css::auxiliary::namespace::FormatCssNamespace, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::namespace::FormatCssNamespace::default(), @@ -3032,7 +2873,6 @@ impl AsFormat for biome_css_syntax::CssNamespaceAtRule { crate::css::statements::namespace_at_rule::FormatCssNamespaceAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::namespace_at_rule::FormatCssNamespaceAtRule::default(), @@ -3045,7 +2885,6 @@ impl IntoFormat for biome_css_syntax::CssNamespaceAtRule { crate::css::statements::namespace_at_rule::FormatCssNamespaceAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::namespace_at_rule::FormatCssNamespaceAtRule::default(), @@ -3072,7 +2911,6 @@ impl AsFormat for biome_css_syntax::CssNestedQualifiedRule { crate::css::auxiliary::nested_qualified_rule::FormatCssNestedQualifiedRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::nested_qualified_rule::FormatCssNestedQualifiedRule::default(), @@ -3085,7 +2923,6 @@ impl IntoFormat for biome_css_syntax::CssNestedQualifiedRule { crate::css::auxiliary::nested_qualified_rule::FormatCssNestedQualifiedRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::nested_qualified_rule::FormatCssNestedQualifiedRule::default(), @@ -3112,7 +2949,6 @@ impl AsFormat for biome_css_syntax::CssNestedSelector { crate::css::selectors::nested_selector::FormatCssNestedSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::nested_selector::FormatCssNestedSelector::default(), @@ -3125,7 +2961,6 @@ impl IntoFormat for biome_css_syntax::CssNestedSelector { crate::css::selectors::nested_selector::FormatCssNestedSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::nested_selector::FormatCssNestedSelector::default(), @@ -3148,7 +2983,6 @@ impl AsFormat for biome_css_syntax::CssNthOffset { crate::css::auxiliary::nth_offset::FormatCssNthOffset, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::nth_offset::FormatCssNthOffset::default(), @@ -3161,7 +2995,6 @@ impl IntoFormat for biome_css_syntax::CssNthOffset { crate::css::auxiliary::nth_offset::FormatCssNthOffset, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::nth_offset::FormatCssNthOffset::default(), @@ -3182,7 +3015,6 @@ impl AsFormat for biome_css_syntax::CssNumber { crate::css::value::number::FormatCssNumber, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::value::number::FormatCssNumber::default()) } } @@ -3192,7 +3024,6 @@ impl IntoFormat for biome_css_syntax::CssNumber { crate::css::value::number::FormatCssNumber, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::value::number::FormatCssNumber::default()) } } @@ -3216,7 +3047,6 @@ impl AsFormat for biome_css_syntax::CssPageAtRule { crate::css::statements::page_at_rule::FormatCssPageAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::page_at_rule::FormatCssPageAtRule::default(), @@ -3229,7 +3059,6 @@ impl IntoFormat for biome_css_syntax::CssPageAtRule { crate::css::statements::page_at_rule::FormatCssPageAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::page_at_rule::FormatCssPageAtRule::default(), @@ -3256,7 +3085,6 @@ impl AsFormat for biome_css_syntax::CssPageAtRuleBlock { crate::css::auxiliary::page_at_rule_block::FormatCssPageAtRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::page_at_rule_block::FormatCssPageAtRuleBlock::default(), @@ -3269,7 +3097,6 @@ impl IntoFormat for biome_css_syntax::CssPageAtRuleBlock { crate::css::auxiliary::page_at_rule_block::FormatCssPageAtRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::page_at_rule_block::FormatCssPageAtRuleBlock::default(), @@ -3296,7 +3123,6 @@ impl AsFormat for biome_css_syntax::CssPageSelector { crate::css::selectors::page_selector::FormatCssPageSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::page_selector::FormatCssPageSelector::default(), @@ -3309,7 +3135,6 @@ impl IntoFormat for biome_css_syntax::CssPageSelector { crate::css::selectors::page_selector::FormatCssPageSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::page_selector::FormatCssPageSelector::default(), @@ -3336,7 +3161,6 @@ impl AsFormat for biome_css_syntax::CssPageSelectorPseudo { crate::css::pseudo::page_selector_pseudo::FormatCssPageSelectorPseudo, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::pseudo::page_selector_pseudo::FormatCssPageSelectorPseudo::default(), @@ -3349,7 +3173,6 @@ impl IntoFormat for biome_css_syntax::CssPageSelectorPseudo { crate::css::pseudo::page_selector_pseudo::FormatCssPageSelectorPseudo, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::pseudo::page_selector_pseudo::FormatCssPageSelectorPseudo::default(), @@ -3372,7 +3195,6 @@ impl AsFormat for biome_css_syntax::CssParameter { crate::css::auxiliary::parameter::FormatCssParameter, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::parameter::FormatCssParameter::default(), @@ -3385,7 +3207,6 @@ impl IntoFormat for biome_css_syntax::CssParameter { crate::css::auxiliary::parameter::FormatCssParameter, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::parameter::FormatCssParameter::default(), @@ -3412,7 +3233,6 @@ impl AsFormat for biome_css_syntax::CssParenthesizedExpression crate::css::auxiliary::parenthesized_expression::FormatCssParenthesizedExpression, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: parenthesized_expression :: FormatCssParenthesizedExpression :: default ()) } } @@ -3422,7 +3242,6 @@ impl IntoFormat for biome_css_syntax::CssParenthesizedExpressi crate::css::auxiliary::parenthesized_expression::FormatCssParenthesizedExpression, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: parenthesized_expression :: FormatCssParenthesizedExpression :: default ()) } } @@ -3446,7 +3265,6 @@ impl AsFormat for biome_css_syntax::CssPercentage { crate::css::value::percentage::FormatCssPercentage, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::value::percentage::FormatCssPercentage::default(), @@ -3459,13 +3277,50 @@ impl IntoFormat for biome_css_syntax::CssPercentage { crate::css::value::percentage::FormatCssPercentage, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::value::percentage::FormatCssPercentage::default(), ) } } +impl FormatRule + for crate::css::statements::position_try_at_rule::FormatCssPositionTryAtRule +{ + type Context = CssFormatContext; + #[inline(always)] + fn fmt( + &self, + node: &biome_css_syntax::CssPositionTryAtRule, + f: &mut CssFormatter, + ) -> FormatResult<()> { + FormatNodeRule::::fmt(self, node, f) + } +} +impl AsFormat for biome_css_syntax::CssPositionTryAtRule { + type Format<'a> = FormatRefWithRule< + 'a, + biome_css_syntax::CssPositionTryAtRule, + crate::css::statements::position_try_at_rule::FormatCssPositionTryAtRule, + >; + fn format(&self) -> Self::Format<'_> { + FormatRefWithRule::new( + self, + crate::css::statements::position_try_at_rule::FormatCssPositionTryAtRule::default(), + ) + } +} +impl IntoFormat for biome_css_syntax::CssPositionTryAtRule { + type Format = FormatOwnedWithRule< + biome_css_syntax::CssPositionTryAtRule, + crate::css::statements::position_try_at_rule::FormatCssPositionTryAtRule, + >; + fn into_format(self) -> Self::Format { + FormatOwnedWithRule::new( + self, + crate::css::statements::position_try_at_rule::FormatCssPositionTryAtRule::default(), + ) + } +} impl FormatRule for crate::css::statements::property_at_rule::FormatCssPropertyAtRule { @@ -3486,7 +3341,6 @@ impl AsFormat for biome_css_syntax::CssPropertyAtRule { crate::css::statements::property_at_rule::FormatCssPropertyAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::property_at_rule::FormatCssPropertyAtRule::default(), @@ -3499,7 +3353,6 @@ impl IntoFormat for biome_css_syntax::CssPropertyAtRule { crate::css::statements::property_at_rule::FormatCssPropertyAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::property_at_rule::FormatCssPropertyAtRule::default(), @@ -3510,14 +3363,12 @@ impl FormatRule < biome_css_syntax :: CssPseudoClassFunctionCompoundSelector > f impl AsFormat for biome_css_syntax::CssPseudoClassFunctionCompoundSelector { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssPseudoClassFunctionCompoundSelector , crate :: css :: selectors :: pseudo_class_function_compound_selector :: FormatCssPseudoClassFunctionCompoundSelector > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: pseudo_class_function_compound_selector :: FormatCssPseudoClassFunctionCompoundSelector :: default ()) } } impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionCompoundSelector { type Format = FormatOwnedWithRule < biome_css_syntax :: CssPseudoClassFunctionCompoundSelector , crate :: css :: selectors :: pseudo_class_function_compound_selector :: FormatCssPseudoClassFunctionCompoundSelector > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: pseudo_class_function_compound_selector :: FormatCssPseudoClassFunctionCompoundSelector :: default ()) } } @@ -3525,14 +3376,12 @@ impl FormatRule < biome_css_syntax :: CssPseudoClassFunctionCompoundSelectorList impl AsFormat for biome_css_syntax::CssPseudoClassFunctionCompoundSelectorList { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssPseudoClassFunctionCompoundSelectorList , crate :: css :: pseudo :: pseudo_class_function_compound_selector_list :: FormatCssPseudoClassFunctionCompoundSelectorList > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_compound_selector_list :: FormatCssPseudoClassFunctionCompoundSelectorList :: default ()) } } impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionCompoundSelectorList { type Format = FormatOwnedWithRule < biome_css_syntax :: CssPseudoClassFunctionCompoundSelectorList , crate :: css :: pseudo :: pseudo_class_function_compound_selector_list :: FormatCssPseudoClassFunctionCompoundSelectorList > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_compound_selector_list :: FormatCssPseudoClassFunctionCompoundSelectorList :: default ()) } } @@ -3552,14 +3401,12 @@ impl FormatRule impl AsFormat for biome_css_syntax::CssPseudoClassFunctionIdentifier { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssPseudoClassFunctionIdentifier , crate :: css :: pseudo :: pseudo_class_function_identifier :: FormatCssPseudoClassFunctionIdentifier > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_identifier :: FormatCssPseudoClassFunctionIdentifier :: default ()) } } impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionIdentifier { type Format = FormatOwnedWithRule < biome_css_syntax :: CssPseudoClassFunctionIdentifier , crate :: css :: pseudo :: pseudo_class_function_identifier :: FormatCssPseudoClassFunctionIdentifier > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_identifier :: FormatCssPseudoClassFunctionIdentifier :: default ()) } } @@ -3583,7 +3430,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassFunctionNth crate::css::pseudo::pseudo_class_function_nth::FormatCssPseudoClassFunctionNth, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::pseudo::pseudo_class_function_nth::FormatCssPseudoClassFunctionNth::default( @@ -3597,7 +3443,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionNt crate::css::pseudo::pseudo_class_function_nth::FormatCssPseudoClassFunctionNth, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::pseudo::pseudo_class_function_nth::FormatCssPseudoClassFunctionNth::default( @@ -3609,14 +3454,12 @@ impl FormatRule < biome_css_syntax :: CssPseudoClassFunctionRelativeSelectorList impl AsFormat for biome_css_syntax::CssPseudoClassFunctionRelativeSelectorList { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssPseudoClassFunctionRelativeSelectorList , crate :: css :: pseudo :: pseudo_class_function_relative_selector_list :: FormatCssPseudoClassFunctionRelativeSelectorList > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_relative_selector_list :: FormatCssPseudoClassFunctionRelativeSelectorList :: default ()) } } impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionRelativeSelectorList { type Format = FormatOwnedWithRule < biome_css_syntax :: CssPseudoClassFunctionRelativeSelectorList , crate :: css :: pseudo :: pseudo_class_function_relative_selector_list :: FormatCssPseudoClassFunctionRelativeSelectorList > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_relative_selector_list :: FormatCssPseudoClassFunctionRelativeSelectorList :: default ()) } } @@ -3640,7 +3483,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassFunctionSele crate::css::selectors::pseudo_class_function_selector::FormatCssPseudoClassFunctionSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: pseudo_class_function_selector :: FormatCssPseudoClassFunctionSelector :: default ()) } } @@ -3650,7 +3492,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionSe crate::css::selectors::pseudo_class_function_selector::FormatCssPseudoClassFunctionSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: pseudo_class_function_selector :: FormatCssPseudoClassFunctionSelector :: default ()) } } @@ -3658,14 +3499,12 @@ impl FormatRule < biome_css_syntax :: CssPseudoClassFunctionSelectorList > for c impl AsFormat for biome_css_syntax::CssPseudoClassFunctionSelectorList { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssPseudoClassFunctionSelectorList , crate :: css :: pseudo :: pseudo_class_function_selector_list :: FormatCssPseudoClassFunctionSelectorList > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_selector_list :: FormatCssPseudoClassFunctionSelectorList :: default ()) } } impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionSelectorList { type Format = FormatOwnedWithRule < biome_css_syntax :: CssPseudoClassFunctionSelectorList , crate :: css :: pseudo :: pseudo_class_function_selector_list :: FormatCssPseudoClassFunctionSelectorList > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_selector_list :: FormatCssPseudoClassFunctionSelectorList :: default ()) } } @@ -3689,7 +3528,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassFunctionValu crate::css::pseudo::pseudo_class_function_value_list::FormatCssPseudoClassFunctionValueList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_value_list :: FormatCssPseudoClassFunctionValueList :: default ()) } } @@ -3699,7 +3537,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassFunctionVa crate::css::pseudo::pseudo_class_function_value_list::FormatCssPseudoClassFunctionValueList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_function_value_list :: FormatCssPseudoClassFunctionValueList :: default ()) } } @@ -3723,7 +3560,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassIdentifier { crate::css::pseudo::pseudo_class_identifier::FormatCssPseudoClassIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::pseudo::pseudo_class_identifier::FormatCssPseudoClassIdentifier::default(), @@ -3736,7 +3572,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassIdentifier crate::css::pseudo::pseudo_class_identifier::FormatCssPseudoClassIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::pseudo::pseudo_class_identifier::FormatCssPseudoClassIdentifier::default(), @@ -3763,7 +3598,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassNth { crate::css::pseudo::pseudo_class_nth::FormatCssPseudoClassNth, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::pseudo::pseudo_class_nth::FormatCssPseudoClassNth::default(), @@ -3776,7 +3610,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassNth { crate::css::pseudo::pseudo_class_nth::FormatCssPseudoClassNth, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::pseudo::pseudo_class_nth::FormatCssPseudoClassNth::default(), @@ -3803,7 +3636,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassNthIdentifie crate::css::pseudo::pseudo_class_nth_identifier::FormatCssPseudoClassNthIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_nth_identifier :: FormatCssPseudoClassNthIdentifier :: default ()) } } @@ -3813,7 +3645,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassNthIdentif crate::css::pseudo::pseudo_class_nth_identifier::FormatCssPseudoClassNthIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_class_nth_identifier :: FormatCssPseudoClassNthIdentifier :: default ()) } } @@ -3837,7 +3668,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassNthNumber { crate::css::pseudo::pseudo_class_nth_number::FormatCssPseudoClassNthNumber, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::pseudo::pseudo_class_nth_number::FormatCssPseudoClassNthNumber::default(), @@ -3850,7 +3680,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassNthNumber crate::css::pseudo::pseudo_class_nth_number::FormatCssPseudoClassNthNumber, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::pseudo::pseudo_class_nth_number::FormatCssPseudoClassNthNumber::default(), @@ -3877,7 +3706,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassNthSelector crate::css::selectors::pseudo_class_nth_selector::FormatCssPseudoClassNthSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: pseudo_class_nth_selector :: FormatCssPseudoClassNthSelector :: default ()) } } @@ -3887,7 +3715,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassNthSelecto crate::css::selectors::pseudo_class_nth_selector::FormatCssPseudoClassNthSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: pseudo_class_nth_selector :: FormatCssPseudoClassNthSelector :: default ()) } } @@ -3911,7 +3738,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassOfNthSelecto crate::css::selectors::pseudo_class_of_nth_selector::FormatCssPseudoClassOfNthSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: pseudo_class_of_nth_selector :: FormatCssPseudoClassOfNthSelector :: default ()) } } @@ -3921,7 +3747,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassOfNthSelec crate::css::selectors::pseudo_class_of_nth_selector::FormatCssPseudoClassOfNthSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: pseudo_class_of_nth_selector :: FormatCssPseudoClassOfNthSelector :: default ()) } } @@ -3945,7 +3770,6 @@ impl AsFormat for biome_css_syntax::CssPseudoClassSelector { crate::css::selectors::pseudo_class_selector::FormatCssPseudoClassSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::pseudo_class_selector::FormatCssPseudoClassSelector::default(), @@ -3958,7 +3782,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoClassSelector { crate::css::selectors::pseudo_class_selector::FormatCssPseudoClassSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::pseudo_class_selector::FormatCssPseudoClassSelector::default(), @@ -3969,14 +3792,12 @@ impl FormatRule < biome_css_syntax :: CssPseudoElementFunctionIdentifier > for c impl AsFormat for biome_css_syntax::CssPseudoElementFunctionIdentifier { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssPseudoElementFunctionIdentifier , crate :: css :: pseudo :: pseudo_element_function_identifier :: FormatCssPseudoElementFunctionIdentifier > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_element_function_identifier :: FormatCssPseudoElementFunctionIdentifier :: default ()) } } impl IntoFormat for biome_css_syntax::CssPseudoElementFunctionIdentifier { type Format = FormatOwnedWithRule < biome_css_syntax :: CssPseudoElementFunctionIdentifier , crate :: css :: pseudo :: pseudo_element_function_identifier :: FormatCssPseudoElementFunctionIdentifier > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_element_function_identifier :: FormatCssPseudoElementFunctionIdentifier :: default ()) } } @@ -3984,14 +3805,12 @@ impl FormatRule < biome_css_syntax :: CssPseudoElementFunctionSelector > for cra impl AsFormat for biome_css_syntax::CssPseudoElementFunctionSelector { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssPseudoElementFunctionSelector , crate :: css :: selectors :: pseudo_element_function_selector :: FormatCssPseudoElementFunctionSelector > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: pseudo_element_function_selector :: FormatCssPseudoElementFunctionSelector :: default ()) } } impl IntoFormat for biome_css_syntax::CssPseudoElementFunctionSelector { type Format = FormatOwnedWithRule < biome_css_syntax :: CssPseudoElementFunctionSelector , crate :: css :: selectors :: pseudo_element_function_selector :: FormatCssPseudoElementFunctionSelector > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: pseudo_element_function_selector :: FormatCssPseudoElementFunctionSelector :: default ()) } } @@ -4015,7 +3834,6 @@ impl AsFormat for biome_css_syntax::CssPseudoElementIdentifier crate::css::pseudo::pseudo_element_identifier::FormatCssPseudoElementIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: pseudo :: pseudo_element_identifier :: FormatCssPseudoElementIdentifier :: default ()) } } @@ -4025,7 +3843,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoElementIdentifi crate::css::pseudo::pseudo_element_identifier::FormatCssPseudoElementIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: pseudo :: pseudo_element_identifier :: FormatCssPseudoElementIdentifier :: default ()) } } @@ -4049,7 +3866,6 @@ impl AsFormat for biome_css_syntax::CssPseudoElementSelector { crate::css::selectors::pseudo_element_selector::FormatCssPseudoElementSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::pseudo_element_selector::FormatCssPseudoElementSelector::default( @@ -4063,7 +3879,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoElementSelector crate::css::selectors::pseudo_element_selector::FormatCssPseudoElementSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::pseudo_element_selector::FormatCssPseudoElementSelector::default( @@ -4091,7 +3906,6 @@ impl AsFormat for biome_css_syntax::CssQualifiedRule { crate::css::auxiliary::qualified_rule::FormatCssQualifiedRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::qualified_rule::FormatCssQualifiedRule::default(), @@ -4104,7 +3918,6 @@ impl IntoFormat for biome_css_syntax::CssQualifiedRule { crate::css::auxiliary::qualified_rule::FormatCssQualifiedRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::qualified_rule::FormatCssQualifiedRule::default(), @@ -4131,7 +3944,6 @@ impl AsFormat for biome_css_syntax::CssQueryFeatureBoolean { crate::css::auxiliary::query_feature_boolean::FormatCssQueryFeatureBoolean, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::query_feature_boolean::FormatCssQueryFeatureBoolean::default(), @@ -4144,7 +3956,6 @@ impl IntoFormat for biome_css_syntax::CssQueryFeatureBoolean { crate::css::auxiliary::query_feature_boolean::FormatCssQueryFeatureBoolean, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::query_feature_boolean::FormatCssQueryFeatureBoolean::default(), @@ -4171,7 +3982,6 @@ impl AsFormat for biome_css_syntax::CssQueryFeaturePlain { crate::css::auxiliary::query_feature_plain::FormatCssQueryFeaturePlain, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::query_feature_plain::FormatCssQueryFeaturePlain::default(), @@ -4184,7 +3994,6 @@ impl IntoFormat for biome_css_syntax::CssQueryFeaturePlain { crate::css::auxiliary::query_feature_plain::FormatCssQueryFeaturePlain, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::query_feature_plain::FormatCssQueryFeaturePlain::default(), @@ -4211,7 +4020,6 @@ impl AsFormat for biome_css_syntax::CssQueryFeatureRange { crate::css::auxiliary::query_feature_range::FormatCssQueryFeatureRange, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::query_feature_range::FormatCssQueryFeatureRange::default(), @@ -4224,7 +4032,6 @@ impl IntoFormat for biome_css_syntax::CssQueryFeatureRange { crate::css::auxiliary::query_feature_range::FormatCssQueryFeatureRange, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::query_feature_range::FormatCssQueryFeatureRange::default(), @@ -4251,7 +4058,6 @@ impl AsFormat for biome_css_syntax::CssQueryFeatureRangeCompar crate::css::auxiliary::query_feature_range_comparison::FormatCssQueryFeatureRangeComparison, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: query_feature_range_comparison :: FormatCssQueryFeatureRangeComparison :: default ()) } } @@ -4261,7 +4067,6 @@ impl IntoFormat for biome_css_syntax::CssQueryFeatureRangeComp crate::css::auxiliary::query_feature_range_comparison::FormatCssQueryFeatureRangeComparison, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: query_feature_range_comparison :: FormatCssQueryFeatureRangeComparison :: default ()) } } @@ -4285,7 +4090,6 @@ impl AsFormat for biome_css_syntax::CssQueryFeatureRangeInterv crate::css::auxiliary::query_feature_range_interval::FormatCssQueryFeatureRangeInterval, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: query_feature_range_interval :: FormatCssQueryFeatureRangeInterval :: default ()) } } @@ -4295,7 +4099,6 @@ impl IntoFormat for biome_css_syntax::CssQueryFeatureRangeInte crate::css::auxiliary::query_feature_range_interval::FormatCssQueryFeatureRangeInterval, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: query_feature_range_interval :: FormatCssQueryFeatureRangeInterval :: default ()) } } @@ -4319,7 +4122,6 @@ impl AsFormat for biome_css_syntax::CssQueryFeatureReverseRang crate::css::auxiliary::query_feature_reverse_range::FormatCssQueryFeatureReverseRange, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: query_feature_reverse_range :: FormatCssQueryFeatureReverseRange :: default ()) } } @@ -4329,7 +4131,6 @@ impl IntoFormat for biome_css_syntax::CssQueryFeatureReverseRa crate::css::auxiliary::query_feature_reverse_range::FormatCssQueryFeatureReverseRange, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: query_feature_reverse_range :: FormatCssQueryFeatureReverseRange :: default ()) } } @@ -4344,7 +4145,6 @@ impl AsFormat for biome_css_syntax::CssRatio { type Format<'a> = FormatRefWithRule<'a, biome_css_syntax::CssRatio, crate::css::value::ratio::FormatCssRatio>; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::value::ratio::FormatCssRatio::default()) } } @@ -4352,7 +4152,6 @@ impl IntoFormat for biome_css_syntax::CssRatio { type Format = FormatOwnedWithRule; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::value::ratio::FormatCssRatio::default()) } } @@ -4376,7 +4175,6 @@ impl AsFormat for biome_css_syntax::CssRegularDimension { crate::css::value::regular_dimension::FormatCssRegularDimension, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::value::regular_dimension::FormatCssRegularDimension::default(), @@ -4389,7 +4187,6 @@ impl IntoFormat for biome_css_syntax::CssRegularDimension { crate::css::value::regular_dimension::FormatCssRegularDimension, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::value::regular_dimension::FormatCssRegularDimension::default(), @@ -4416,7 +4213,6 @@ impl AsFormat for biome_css_syntax::CssRelativeSelector { crate::css::selectors::relative_selector::FormatCssRelativeSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::relative_selector::FormatCssRelativeSelector::default(), @@ -4429,7 +4225,6 @@ impl IntoFormat for biome_css_syntax::CssRelativeSelector { crate::css::selectors::relative_selector::FormatCssRelativeSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::relative_selector::FormatCssRelativeSelector::default(), @@ -4450,7 +4245,6 @@ impl AsFormat for biome_css_syntax::CssRoot { crate::css::auxiliary::root::FormatCssRoot, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::auxiliary::root::FormatCssRoot::default()) } } @@ -4458,7 +4252,6 @@ impl IntoFormat for biome_css_syntax::CssRoot { type Format = FormatOwnedWithRule; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::auxiliary::root::FormatCssRoot::default()) } } @@ -4478,7 +4271,6 @@ impl AsFormat for biome_css_syntax::CssRuleBlock { crate::css::auxiliary::rule_block::FormatCssRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::rule_block::FormatCssRuleBlock::default(), @@ -4491,7 +4283,6 @@ impl IntoFormat for biome_css_syntax::CssRuleBlock { crate::css::auxiliary::rule_block::FormatCssRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::rule_block::FormatCssRuleBlock::default(), @@ -4518,7 +4309,6 @@ impl AsFormat for biome_css_syntax::CssScopeAtRule { crate::css::statements::scope_at_rule::FormatCssScopeAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::scope_at_rule::FormatCssScopeAtRule::default(), @@ -4531,7 +4321,6 @@ impl IntoFormat for biome_css_syntax::CssScopeAtRule { crate::css::statements::scope_at_rule::FormatCssScopeAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::scope_at_rule::FormatCssScopeAtRule::default(), @@ -4554,7 +4343,6 @@ impl AsFormat for biome_css_syntax::CssScopeEdge { crate::css::auxiliary::scope_edge::FormatCssScopeEdge, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::scope_edge::FormatCssScopeEdge::default(), @@ -4567,7 +4355,6 @@ impl IntoFormat for biome_css_syntax::CssScopeEdge { crate::css::auxiliary::scope_edge::FormatCssScopeEdge, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::scope_edge::FormatCssScopeEdge::default(), @@ -4594,7 +4381,6 @@ impl AsFormat for biome_css_syntax::CssScopeRangeEnd { crate::css::auxiliary::scope_range_end::FormatCssScopeRangeEnd, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::scope_range_end::FormatCssScopeRangeEnd::default(), @@ -4607,7 +4393,6 @@ impl IntoFormat for biome_css_syntax::CssScopeRangeEnd { crate::css::auxiliary::scope_range_end::FormatCssScopeRangeEnd, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::scope_range_end::FormatCssScopeRangeEnd::default(), @@ -4634,7 +4419,6 @@ impl AsFormat for biome_css_syntax::CssScopeRangeInterval { crate::css::auxiliary::scope_range_interval::FormatCssScopeRangeInterval, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::scope_range_interval::FormatCssScopeRangeInterval::default(), @@ -4647,7 +4431,6 @@ impl IntoFormat for biome_css_syntax::CssScopeRangeInterval { crate::css::auxiliary::scope_range_interval::FormatCssScopeRangeInterval, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::scope_range_interval::FormatCssScopeRangeInterval::default(), @@ -4674,7 +4457,6 @@ impl AsFormat for biome_css_syntax::CssScopeRangeStart { crate::css::auxiliary::scope_range_start::FormatCssScopeRangeStart, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::scope_range_start::FormatCssScopeRangeStart::default(), @@ -4687,7 +4469,6 @@ impl IntoFormat for biome_css_syntax::CssScopeRangeStart { crate::css::auxiliary::scope_range_start::FormatCssScopeRangeStart, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::scope_range_start::FormatCssScopeRangeStart::default(), @@ -4714,7 +4495,6 @@ impl AsFormat for biome_css_syntax::CssStartingStyleAtRule { crate::css::statements::starting_style_at_rule::FormatCssStartingStyleAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::starting_style_at_rule::FormatCssStartingStyleAtRule::default(), @@ -4727,7 +4507,6 @@ impl IntoFormat for biome_css_syntax::CssStartingStyleAtRule { crate::css::statements::starting_style_at_rule::FormatCssStartingStyleAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::starting_style_at_rule::FormatCssStartingStyleAtRule::default(), @@ -4748,7 +4527,6 @@ impl AsFormat for biome_css_syntax::CssString { crate::css::value::string::FormatCssString, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::value::string::FormatCssString::default()) } } @@ -4758,7 +4536,6 @@ impl IntoFormat for biome_css_syntax::CssString { crate::css::value::string::FormatCssString, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::value::string::FormatCssString::default()) } } @@ -4782,7 +4559,6 @@ impl AsFormat for biome_css_syntax::CssSupportsAndCondition { crate::css::auxiliary::supports_and_condition::FormatCssSupportsAndCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::supports_and_condition::FormatCssSupportsAndCondition::default(), @@ -4795,7 +4571,6 @@ impl IntoFormat for biome_css_syntax::CssSupportsAndCondition crate::css::auxiliary::supports_and_condition::FormatCssSupportsAndCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::supports_and_condition::FormatCssSupportsAndCondition::default(), @@ -4822,7 +4597,6 @@ impl AsFormat for biome_css_syntax::CssSupportsAtRule { crate::css::statements::supports_at_rule::FormatCssSupportsAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::supports_at_rule::FormatCssSupportsAtRule::default(), @@ -4835,7 +4609,6 @@ impl IntoFormat for biome_css_syntax::CssSupportsAtRule { crate::css::statements::supports_at_rule::FormatCssSupportsAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::supports_at_rule::FormatCssSupportsAtRule::default(), @@ -4862,7 +4635,6 @@ impl AsFormat for biome_css_syntax::CssSupportsConditionInPare crate::css::auxiliary::supports_condition_in_parens::FormatCssSupportsConditionInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: supports_condition_in_parens :: FormatCssSupportsConditionInParens :: default ()) } } @@ -4872,7 +4644,6 @@ impl IntoFormat for biome_css_syntax::CssSupportsConditionInPa crate::css::auxiliary::supports_condition_in_parens::FormatCssSupportsConditionInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: supports_condition_in_parens :: FormatCssSupportsConditionInParens :: default ()) } } @@ -4896,7 +4667,6 @@ impl AsFormat for biome_css_syntax::CssSupportsFeatureDeclarat crate::css::auxiliary::supports_feature_declaration::FormatCssSupportsFeatureDeclaration, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: supports_feature_declaration :: FormatCssSupportsFeatureDeclaration :: default ()) } } @@ -4906,7 +4676,6 @@ impl IntoFormat for biome_css_syntax::CssSupportsFeatureDeclar crate::css::auxiliary::supports_feature_declaration::FormatCssSupportsFeatureDeclaration, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: supports_feature_declaration :: FormatCssSupportsFeatureDeclaration :: default ()) } } @@ -4930,7 +4699,6 @@ impl AsFormat for biome_css_syntax::CssSupportsFeatureSelector crate::css::selectors::supports_feature_selector::FormatCssSupportsFeatureSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: selectors :: supports_feature_selector :: FormatCssSupportsFeatureSelector :: default ()) } } @@ -4940,7 +4708,6 @@ impl IntoFormat for biome_css_syntax::CssSupportsFeatureSelect crate::css::selectors::supports_feature_selector::FormatCssSupportsFeatureSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: selectors :: supports_feature_selector :: FormatCssSupportsFeatureSelector :: default ()) } } @@ -4964,7 +4731,6 @@ impl AsFormat for biome_css_syntax::CssSupportsNotCondition { crate::css::auxiliary::supports_not_condition::FormatCssSupportsNotCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::supports_not_condition::FormatCssSupportsNotCondition::default(), @@ -4977,7 +4743,6 @@ impl IntoFormat for biome_css_syntax::CssSupportsNotCondition crate::css::auxiliary::supports_not_condition::FormatCssSupportsNotCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::supports_not_condition::FormatCssSupportsNotCondition::default(), @@ -5004,7 +4769,6 @@ impl AsFormat for biome_css_syntax::CssSupportsOrCondition { crate::css::auxiliary::supports_or_condition::FormatCssSupportsOrCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::supports_or_condition::FormatCssSupportsOrCondition::default(), @@ -5017,7 +4781,6 @@ impl IntoFormat for biome_css_syntax::CssSupportsOrCondition { crate::css::auxiliary::supports_or_condition::FormatCssSupportsOrCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::supports_or_condition::FormatCssSupportsOrCondition::default(), @@ -5044,7 +4807,6 @@ impl AsFormat for biome_css_syntax::CssTypeSelector { crate::css::selectors::type_selector::FormatCssTypeSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::type_selector::FormatCssTypeSelector::default(), @@ -5057,7 +4819,6 @@ impl IntoFormat for biome_css_syntax::CssTypeSelector { crate::css::selectors::type_selector::FormatCssTypeSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::type_selector::FormatCssTypeSelector::default(), @@ -5084,7 +4845,6 @@ impl AsFormat for biome_css_syntax::CssUnicodeCodepoint { crate::css::auxiliary::unicode_codepoint::FormatCssUnicodeCodepoint, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::unicode_codepoint::FormatCssUnicodeCodepoint::default(), @@ -5097,7 +4857,6 @@ impl IntoFormat for biome_css_syntax::CssUnicodeCodepoint { crate::css::auxiliary::unicode_codepoint::FormatCssUnicodeCodepoint, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::unicode_codepoint::FormatCssUnicodeCodepoint::default(), @@ -5124,7 +4883,6 @@ impl AsFormat for biome_css_syntax::CssUnicodeRange { crate::css::auxiliary::unicode_range::FormatCssUnicodeRange, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::unicode_range::FormatCssUnicodeRange::default(), @@ -5137,7 +4895,6 @@ impl IntoFormat for biome_css_syntax::CssUnicodeRange { crate::css::auxiliary::unicode_range::FormatCssUnicodeRange, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::unicode_range::FormatCssUnicodeRange::default(), @@ -5164,7 +4921,6 @@ impl AsFormat for biome_css_syntax::CssUnicodeRangeInterval { crate::css::auxiliary::unicode_range_interval::FormatCssUnicodeRangeInterval, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::unicode_range_interval::FormatCssUnicodeRangeInterval::default(), @@ -5177,7 +4933,6 @@ impl IntoFormat for biome_css_syntax::CssUnicodeRangeInterval crate::css::auxiliary::unicode_range_interval::FormatCssUnicodeRangeInterval, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::unicode_range_interval::FormatCssUnicodeRangeInterval::default(), @@ -5204,7 +4959,6 @@ impl AsFormat for biome_css_syntax::CssUnicodeRangeWildcard { crate::css::auxiliary::unicode_range_wildcard::FormatCssUnicodeRangeWildcard, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::unicode_range_wildcard::FormatCssUnicodeRangeWildcard::default(), @@ -5217,7 +4971,6 @@ impl IntoFormat for biome_css_syntax::CssUnicodeRangeWildcard crate::css::auxiliary::unicode_range_wildcard::FormatCssUnicodeRangeWildcard, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::unicode_range_wildcard::FormatCssUnicodeRangeWildcard::default(), @@ -5244,7 +4997,6 @@ impl AsFormat for biome_css_syntax::CssUniversalNamespacePrefi crate::css::auxiliary::universal_namespace_prefix::FormatCssUniversalNamespacePrefix, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: universal_namespace_prefix :: FormatCssUniversalNamespacePrefix :: default ()) } } @@ -5254,7 +5006,6 @@ impl IntoFormat for biome_css_syntax::CssUniversalNamespacePre crate::css::auxiliary::universal_namespace_prefix::FormatCssUniversalNamespacePrefix, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: universal_namespace_prefix :: FormatCssUniversalNamespacePrefix :: default ()) } } @@ -5278,7 +5029,6 @@ impl AsFormat for biome_css_syntax::CssUniversalSelector { crate::css::selectors::universal_selector::FormatCssUniversalSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::selectors::universal_selector::FormatCssUniversalSelector::default(), @@ -5291,7 +5041,6 @@ impl IntoFormat for biome_css_syntax::CssUniversalSelector { crate::css::selectors::universal_selector::FormatCssUniversalSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::selectors::universal_selector::FormatCssUniversalSelector::default(), @@ -5318,7 +5067,6 @@ impl AsFormat for biome_css_syntax::CssUnknownBlockAtRule { crate::css::statements::unknown_block_at_rule::FormatCssUnknownBlockAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::unknown_block_at_rule::FormatCssUnknownBlockAtRule::default(), @@ -5331,7 +5079,6 @@ impl IntoFormat for biome_css_syntax::CssUnknownBlockAtRule { crate::css::statements::unknown_block_at_rule::FormatCssUnknownBlockAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::unknown_block_at_rule::FormatCssUnknownBlockAtRule::default(), @@ -5358,7 +5105,6 @@ impl AsFormat for biome_css_syntax::CssUnknownDimension { crate::css::value::unknown_dimension::FormatCssUnknownDimension, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::value::unknown_dimension::FormatCssUnknownDimension::default(), @@ -5371,7 +5117,6 @@ impl IntoFormat for biome_css_syntax::CssUnknownDimension { crate::css::value::unknown_dimension::FormatCssUnknownDimension, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::value::unknown_dimension::FormatCssUnknownDimension::default(), @@ -5398,7 +5143,6 @@ impl AsFormat for biome_css_syntax::CssUnknownValueAtRule { crate::css::statements::unknown_value_at_rule::FormatCssUnknownValueAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::unknown_value_at_rule::FormatCssUnknownValueAtRule::default(), @@ -5411,7 +5155,6 @@ impl IntoFormat for biome_css_syntax::CssUnknownValueAtRule { crate::css::statements::unknown_value_at_rule::FormatCssUnknownValueAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::unknown_value_at_rule::FormatCssUnknownValueAtRule::default(), @@ -5438,7 +5181,6 @@ impl AsFormat for biome_css_syntax::CssUrlFunction { crate::css::auxiliary::url_function::FormatCssUrlFunction, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::auxiliary::url_function::FormatCssUrlFunction::default(), @@ -5451,7 +5193,6 @@ impl IntoFormat for biome_css_syntax::CssUrlFunction { crate::css::auxiliary::url_function::FormatCssUrlFunction, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::auxiliary::url_function::FormatCssUrlFunction::default(), @@ -5478,7 +5219,6 @@ impl AsFormat for biome_css_syntax::CssUrlValueRaw { crate::css::value::url_value_raw::FormatCssUrlValueRaw, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::value::url_value_raw::FormatCssUrlValueRaw::default(), @@ -5491,7 +5231,6 @@ impl IntoFormat for biome_css_syntax::CssUrlValueRaw { crate::css::value::url_value_raw::FormatCssUrlValueRaw, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::value::url_value_raw::FormatCssUrlValueRaw::default(), @@ -5518,7 +5257,6 @@ impl AsFormat for biome_css_syntax::CssValueAtRule { crate::css::statements::value_at_rule::FormatCssValueAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::statements::value_at_rule::FormatCssValueAtRule::default(), @@ -5531,7 +5269,6 @@ impl IntoFormat for biome_css_syntax::CssValueAtRule { crate::css::statements::value_at_rule::FormatCssValueAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::statements::value_at_rule::FormatCssValueAtRule::default(), @@ -5542,14 +5279,12 @@ impl FormatRule < biome_css_syntax :: CssValueAtRuleDeclarationClause > for crat impl AsFormat for biome_css_syntax::CssValueAtRuleDeclarationClause { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssValueAtRuleDeclarationClause , crate :: css :: auxiliary :: value_at_rule_declaration_clause :: FormatCssValueAtRuleDeclarationClause > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_declaration_clause :: FormatCssValueAtRuleDeclarationClause :: default ()) } } impl IntoFormat for biome_css_syntax::CssValueAtRuleDeclarationClause { type Format = FormatOwnedWithRule < biome_css_syntax :: CssValueAtRuleDeclarationClause , crate :: css :: auxiliary :: value_at_rule_declaration_clause :: FormatCssValueAtRuleDeclarationClause > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_declaration_clause :: FormatCssValueAtRuleDeclarationClause :: default ()) } } @@ -5573,7 +5308,6 @@ impl AsFormat for biome_css_syntax::CssValueAtRuleGenericPrope crate::css::properties::value_at_rule_generic_property::FormatCssValueAtRuleGenericProperty, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: properties :: value_at_rule_generic_property :: FormatCssValueAtRuleGenericProperty :: default ()) } } @@ -5583,7 +5317,6 @@ impl IntoFormat for biome_css_syntax::CssValueAtRuleGenericPro crate::css::properties::value_at_rule_generic_property::FormatCssValueAtRuleGenericProperty, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: properties :: value_at_rule_generic_property :: FormatCssValueAtRuleGenericProperty :: default ()) } } @@ -5607,7 +5340,6 @@ impl AsFormat for biome_css_syntax::CssValueAtRuleImportClause crate::css::auxiliary::value_at_rule_import_clause::FormatCssValueAtRuleImportClause, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_import_clause :: FormatCssValueAtRuleImportClause :: default ()) } } @@ -5617,7 +5349,6 @@ impl IntoFormat for biome_css_syntax::CssValueAtRuleImportClau crate::css::auxiliary::value_at_rule_import_clause::FormatCssValueAtRuleImportClause, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_import_clause :: FormatCssValueAtRuleImportClause :: default ()) } } @@ -5641,7 +5372,6 @@ impl AsFormat for biome_css_syntax::CssValueAtRuleImportSpecif crate::css::auxiliary::value_at_rule_import_specifier::FormatCssValueAtRuleImportSpecifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_import_specifier :: FormatCssValueAtRuleImportSpecifier :: default ()) } } @@ -5651,7 +5381,6 @@ impl IntoFormat for biome_css_syntax::CssValueAtRuleImportSpec crate::css::auxiliary::value_at_rule_import_specifier::FormatCssValueAtRuleImportSpecifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_import_specifier :: FormatCssValueAtRuleImportSpecifier :: default ()) } } @@ -5659,17 +5388,55 @@ impl FormatRule < biome_css_syntax :: CssValueAtRuleNamedImportSpecifier > for c impl AsFormat for biome_css_syntax::CssValueAtRuleNamedImportSpecifier { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssValueAtRuleNamedImportSpecifier , crate :: css :: auxiliary :: value_at_rule_named_import_specifier :: FormatCssValueAtRuleNamedImportSpecifier > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_named_import_specifier :: FormatCssValueAtRuleNamedImportSpecifier :: default ()) } } impl IntoFormat for biome_css_syntax::CssValueAtRuleNamedImportSpecifier { type Format = FormatOwnedWithRule < biome_css_syntax :: CssValueAtRuleNamedImportSpecifier , crate :: css :: auxiliary :: value_at_rule_named_import_specifier :: FormatCssValueAtRuleNamedImportSpecifier > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: value_at_rule_named_import_specifier :: FormatCssValueAtRuleNamedImportSpecifier :: default ()) } } +impl FormatRule + for crate::css::statements::view_transition_at_rule::FormatCssViewTransitionAtRule +{ + type Context = CssFormatContext; + #[inline(always)] + fn fmt( + &self, + node: &biome_css_syntax::CssViewTransitionAtRule, + f: &mut CssFormatter, + ) -> FormatResult<()> { + FormatNodeRule::::fmt(self, node, f) + } +} +impl AsFormat for biome_css_syntax::CssViewTransitionAtRule { + type Format<'a> = FormatRefWithRule< + 'a, + biome_css_syntax::CssViewTransitionAtRule, + crate::css::statements::view_transition_at_rule::FormatCssViewTransitionAtRule, + >; + fn format(&self) -> Self::Format<'_> { + FormatRefWithRule::new( + self, + crate::css::statements::view_transition_at_rule::FormatCssViewTransitionAtRule::default( + ), + ) + } +} +impl IntoFormat for biome_css_syntax::CssViewTransitionAtRule { + type Format = FormatOwnedWithRule< + biome_css_syntax::CssViewTransitionAtRule, + crate::css::statements::view_transition_at_rule::FormatCssViewTransitionAtRule, + >; + fn into_format(self) -> Self::Format { + FormatOwnedWithRule::new( + self, + crate::css::statements::view_transition_at_rule::FormatCssViewTransitionAtRule::default( + ), + ) + } +} impl AsFormat for biome_css_syntax::CssBracketedValueList { type Format<'a> = FormatRefWithRule< 'a, @@ -5677,7 +5444,6 @@ impl AsFormat for biome_css_syntax::CssBracketedValueList { crate::css::lists::bracketed_value_list::FormatCssBracketedValueList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::bracketed_value_list::FormatCssBracketedValueList::default(), @@ -5690,7 +5456,6 @@ impl IntoFormat for biome_css_syntax::CssBracketedValueList { crate::css::lists::bracketed_value_list::FormatCssBracketedValueList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::bracketed_value_list::FormatCssBracketedValueList::default(), @@ -5704,7 +5469,6 @@ impl AsFormat for biome_css_syntax::CssComponentValueList { crate::css::lists::component_value_list::FormatCssComponentValueList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::component_value_list::FormatCssComponentValueList::default(), @@ -5717,7 +5481,6 @@ impl IntoFormat for biome_css_syntax::CssComponentValueList { crate::css::lists::component_value_list::FormatCssComponentValueList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::component_value_list::FormatCssComponentValueList::default(), @@ -5731,7 +5494,6 @@ impl AsFormat for biome_css_syntax::CssComposesClassList { crate::css::lists::composes_class_list::FormatCssComposesClassList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::composes_class_list::FormatCssComposesClassList::default(), @@ -5744,7 +5506,6 @@ impl IntoFormat for biome_css_syntax::CssComposesClassList { crate::css::lists::composes_class_list::FormatCssComposesClassList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::composes_class_list::FormatCssComposesClassList::default(), @@ -5758,7 +5519,6 @@ impl AsFormat for biome_css_syntax::CssCompoundSelectorList { crate::css::lists::compound_selector_list::FormatCssCompoundSelectorList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::compound_selector_list::FormatCssCompoundSelectorList::default(), @@ -5771,7 +5531,6 @@ impl IntoFormat for biome_css_syntax::CssCompoundSelectorList crate::css::lists::compound_selector_list::FormatCssCompoundSelectorList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::compound_selector_list::FormatCssCompoundSelectorList::default(), @@ -5785,7 +5544,6 @@ impl AsFormat for biome_css_syntax::CssCustomIdentifierList { crate::css::lists::custom_identifier_list::FormatCssCustomIdentifierList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::custom_identifier_list::FormatCssCustomIdentifierList::default(), @@ -5798,7 +5556,6 @@ impl IntoFormat for biome_css_syntax::CssCustomIdentifierList crate::css::lists::custom_identifier_list::FormatCssCustomIdentifierList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::custom_identifier_list::FormatCssCustomIdentifierList::default(), @@ -5812,7 +5569,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationList { crate::css::lists::declaration_list::FormatCssDeclarationList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::declaration_list::FormatCssDeclarationList::default(), @@ -5825,7 +5581,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationList { crate::css::lists::declaration_list::FormatCssDeclarationList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::declaration_list::FormatCssDeclarationList::default(), @@ -5839,7 +5594,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationOrAtRuleList crate::css::lists::declaration_or_at_rule_list::FormatCssDeclarationOrAtRuleList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: lists :: declaration_or_at_rule_list :: FormatCssDeclarationOrAtRuleList :: default ()) } } @@ -5849,7 +5603,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationOrAtRuleLi crate::css::lists::declaration_or_at_rule_list::FormatCssDeclarationOrAtRuleList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: lists :: declaration_or_at_rule_list :: FormatCssDeclarationOrAtRuleList :: default ()) } } @@ -5860,7 +5613,6 @@ impl AsFormat for biome_css_syntax::CssDeclarationOrRuleList { crate::css::lists::declaration_or_rule_list::FormatCssDeclarationOrRuleList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::declaration_or_rule_list::FormatCssDeclarationOrRuleList::default(), @@ -5873,7 +5625,6 @@ impl IntoFormat for biome_css_syntax::CssDeclarationOrRuleList crate::css::lists::declaration_or_rule_list::FormatCssDeclarationOrRuleList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::declaration_or_rule_list::FormatCssDeclarationOrRuleList::default(), @@ -5887,7 +5638,6 @@ impl AsFormat for biome_css_syntax::CssDocumentMatcherList { crate::css::lists::document_matcher_list::FormatCssDocumentMatcherList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::document_matcher_list::FormatCssDocumentMatcherList::default(), @@ -5900,7 +5650,6 @@ impl IntoFormat for biome_css_syntax::CssDocumentMatcherList { crate::css::lists::document_matcher_list::FormatCssDocumentMatcherList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::document_matcher_list::FormatCssDocumentMatcherList::default(), @@ -5914,7 +5663,6 @@ impl AsFormat for biome_css_syntax::CssFontFamilyNameList { crate::css::lists::font_family_name_list::FormatCssFontFamilyNameList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::font_family_name_list::FormatCssFontFamilyNameList::default(), @@ -5927,7 +5675,6 @@ impl IntoFormat for biome_css_syntax::CssFontFamilyNameList { crate::css::lists::font_family_name_list::FormatCssFontFamilyNameList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::font_family_name_list::FormatCssFontFamilyNameList::default(), @@ -5941,7 +5688,6 @@ impl AsFormat for biome_css_syntax::CssFontFeatureValuesItemLi crate::css::lists::font_feature_values_item_list::FormatCssFontFeatureValuesItemList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: lists :: font_feature_values_item_list :: FormatCssFontFeatureValuesItemList :: default ()) } } @@ -5951,7 +5697,6 @@ impl IntoFormat for biome_css_syntax::CssFontFeatureValuesItem crate::css::lists::font_feature_values_item_list::FormatCssFontFeatureValuesItemList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: lists :: font_feature_values_item_list :: FormatCssFontFeatureValuesItemList :: default ()) } } @@ -5962,7 +5707,6 @@ impl AsFormat for biome_css_syntax::CssGenericComponentValueLi crate::css::lists::generic_component_value_list::FormatCssGenericComponentValueList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: lists :: generic_component_value_list :: FormatCssGenericComponentValueList :: default ()) } } @@ -5972,7 +5716,6 @@ impl IntoFormat for biome_css_syntax::CssGenericComponentValue crate::css::lists::generic_component_value_list::FormatCssGenericComponentValueList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: lists :: generic_component_value_list :: FormatCssGenericComponentValueList :: default ()) } } @@ -5983,7 +5726,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesItemList { crate::css::lists::keyframes_item_list::FormatCssKeyframesItemList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::keyframes_item_list::FormatCssKeyframesItemList::default(), @@ -5996,7 +5738,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesItemList { crate::css::lists::keyframes_item_list::FormatCssKeyframesItemList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::keyframes_item_list::FormatCssKeyframesItemList::default(), @@ -6010,7 +5751,6 @@ impl AsFormat for biome_css_syntax::CssKeyframesSelectorList { crate::css::lists::keyframes_selector_list::FormatCssKeyframesSelectorList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::keyframes_selector_list::FormatCssKeyframesSelectorList::default(), @@ -6023,7 +5763,6 @@ impl IntoFormat for biome_css_syntax::CssKeyframesSelectorList crate::css::lists::keyframes_selector_list::FormatCssKeyframesSelectorList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::keyframes_selector_list::FormatCssKeyframesSelectorList::default(), @@ -6037,7 +5776,6 @@ impl AsFormat for biome_css_syntax::CssLayerNameList { crate::css::lists::layer_name_list::FormatCssLayerNameList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::layer_name_list::FormatCssLayerNameList::default(), @@ -6050,7 +5788,6 @@ impl IntoFormat for biome_css_syntax::CssLayerNameList { crate::css::lists::layer_name_list::FormatCssLayerNameList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::layer_name_list::FormatCssLayerNameList::default(), @@ -6064,7 +5801,6 @@ impl AsFormat for biome_css_syntax::CssLayerReferenceList { crate::css::lists::layer_reference_list::FormatCssLayerReferenceList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::layer_reference_list::FormatCssLayerReferenceList::default(), @@ -6077,7 +5813,6 @@ impl IntoFormat for biome_css_syntax::CssLayerReferenceList { crate::css::lists::layer_reference_list::FormatCssLayerReferenceList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::layer_reference_list::FormatCssLayerReferenceList::default(), @@ -6091,7 +5826,6 @@ impl AsFormat for biome_css_syntax::CssMediaQueryList { crate::css::lists::media_query_list::FormatCssMediaQueryList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::media_query_list::FormatCssMediaQueryList::default(), @@ -6104,7 +5838,6 @@ impl IntoFormat for biome_css_syntax::CssMediaQueryList { crate::css::lists::media_query_list::FormatCssMediaQueryList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::media_query_list::FormatCssMediaQueryList::default(), @@ -6118,7 +5851,6 @@ impl AsFormat for biome_css_syntax::CssNestedSelectorList { crate::css::lists::nested_selector_list::FormatCssNestedSelectorList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::nested_selector_list::FormatCssNestedSelectorList::default(), @@ -6131,7 +5863,6 @@ impl IntoFormat for biome_css_syntax::CssNestedSelectorList { crate::css::lists::nested_selector_list::FormatCssNestedSelectorList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::nested_selector_list::FormatCssNestedSelectorList::default(), @@ -6145,7 +5876,6 @@ impl AsFormat for biome_css_syntax::CssPageAtRuleItemList { crate::css::lists::page_at_rule_item_list::FormatCssPageAtRuleItemList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::page_at_rule_item_list::FormatCssPageAtRuleItemList::default(), @@ -6158,7 +5888,6 @@ impl IntoFormat for biome_css_syntax::CssPageAtRuleItemList { crate::css::lists::page_at_rule_item_list::FormatCssPageAtRuleItemList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::page_at_rule_item_list::FormatCssPageAtRuleItemList::default(), @@ -6172,7 +5901,6 @@ impl AsFormat for biome_css_syntax::CssPageSelectorList { crate::css::lists::page_selector_list::FormatCssPageSelectorList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::page_selector_list::FormatCssPageSelectorList::default(), @@ -6185,7 +5913,6 @@ impl IntoFormat for biome_css_syntax::CssPageSelectorList { crate::css::lists::page_selector_list::FormatCssPageSelectorList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::page_selector_list::FormatCssPageSelectorList::default(), @@ -6199,7 +5926,6 @@ impl AsFormat for biome_css_syntax::CssPageSelectorPseudoList crate::css::lists::page_selector_pseudo_list::FormatCssPageSelectorPseudoList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::page_selector_pseudo_list::FormatCssPageSelectorPseudoList::default( @@ -6213,7 +5939,6 @@ impl IntoFormat for biome_css_syntax::CssPageSelectorPseudoLis crate::css::lists::page_selector_pseudo_list::FormatCssPageSelectorPseudoList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::page_selector_pseudo_list::FormatCssPageSelectorPseudoList::default( @@ -6228,7 +5953,6 @@ impl AsFormat for biome_css_syntax::CssParameterList { crate::css::lists::parameter_list::FormatCssParameterList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::parameter_list::FormatCssParameterList::default(), @@ -6241,7 +5965,6 @@ impl IntoFormat for biome_css_syntax::CssParameterList { crate::css::lists::parameter_list::FormatCssParameterList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::parameter_list::FormatCssParameterList::default(), @@ -6255,7 +5978,6 @@ impl AsFormat for biome_css_syntax::CssPseudoValueList { crate::css::lists::pseudo_value_list::FormatCssPseudoValueList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::pseudo_value_list::FormatCssPseudoValueList::default(), @@ -6268,7 +5990,6 @@ impl IntoFormat for biome_css_syntax::CssPseudoValueList { crate::css::lists::pseudo_value_list::FormatCssPseudoValueList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::pseudo_value_list::FormatCssPseudoValueList::default(), @@ -6282,7 +6003,6 @@ impl AsFormat for biome_css_syntax::CssRelativeSelectorList { crate::css::lists::relative_selector_list::FormatCssRelativeSelectorList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::relative_selector_list::FormatCssRelativeSelectorList::default(), @@ -6295,7 +6015,6 @@ impl IntoFormat for biome_css_syntax::CssRelativeSelectorList crate::css::lists::relative_selector_list::FormatCssRelativeSelectorList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::relative_selector_list::FormatCssRelativeSelectorList::default(), @@ -6309,7 +6028,6 @@ impl AsFormat for biome_css_syntax::CssRuleList { crate::css::lists::rule_list::FormatCssRuleList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::rule_list::FormatCssRuleList::default(), @@ -6322,7 +6040,6 @@ impl IntoFormat for biome_css_syntax::CssRuleList { crate::css::lists::rule_list::FormatCssRuleList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::rule_list::FormatCssRuleList::default(), @@ -6336,7 +6053,6 @@ impl AsFormat for biome_css_syntax::CssSelectorList { crate::css::lists::selector_list::FormatCssSelectorList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::selector_list::FormatCssSelectorList::default(), @@ -6349,7 +6065,6 @@ impl IntoFormat for biome_css_syntax::CssSelectorList { crate::css::lists::selector_list::FormatCssSelectorList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::selector_list::FormatCssSelectorList::default(), @@ -6363,7 +6078,6 @@ impl AsFormat for biome_css_syntax::CssSubSelectorList { crate::css::lists::sub_selector_list::FormatCssSubSelectorList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::sub_selector_list::FormatCssSubSelectorList::default(), @@ -6376,7 +6090,6 @@ impl IntoFormat for biome_css_syntax::CssSubSelectorList { crate::css::lists::sub_selector_list::FormatCssSubSelectorList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::sub_selector_list::FormatCssSubSelectorList::default(), @@ -6390,7 +6103,6 @@ impl AsFormat for biome_css_syntax::CssUrlModifierList { crate::css::lists::url_modifier_list::FormatCssUrlModifierList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::lists::url_modifier_list::FormatCssUrlModifierList::default(), @@ -6403,7 +6115,6 @@ impl IntoFormat for biome_css_syntax::CssUrlModifierList { crate::css::lists::url_modifier_list::FormatCssUrlModifierList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::lists::url_modifier_list::FormatCssUrlModifierList::default(), @@ -6413,14 +6124,12 @@ impl IntoFormat for biome_css_syntax::CssUrlModifierList { impl AsFormat for biome_css_syntax::CssValueAtRuleImportSpecifierList { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: CssValueAtRuleImportSpecifierList , crate :: css :: lists :: value_at_rule_import_specifier_list :: FormatCssValueAtRuleImportSpecifierList > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: lists :: value_at_rule_import_specifier_list :: FormatCssValueAtRuleImportSpecifierList :: default ()) } } impl IntoFormat for biome_css_syntax::CssValueAtRuleImportSpecifierList { type Format = FormatOwnedWithRule < biome_css_syntax :: CssValueAtRuleImportSpecifierList , crate :: css :: lists :: value_at_rule_import_specifier_list :: FormatCssValueAtRuleImportSpecifierList > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: lists :: value_at_rule_import_specifier_list :: FormatCssValueAtRuleImportSpecifierList :: default ()) } } @@ -6431,7 +6140,6 @@ impl AsFormat for biome_css_syntax::CssValueAtRulePropertyList crate::css::lists::value_at_rule_property_list::FormatCssValueAtRulePropertyList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: lists :: value_at_rule_property_list :: FormatCssValueAtRulePropertyList :: default ()) } } @@ -6441,7 +6149,6 @@ impl IntoFormat for biome_css_syntax::CssValueAtRulePropertyLi crate::css::lists::value_at_rule_property_list::FormatCssValueAtRulePropertyList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: lists :: value_at_rule_property_list :: FormatCssValueAtRulePropertyList :: default ()) } } @@ -6456,7 +6163,6 @@ impl AsFormat for biome_css_syntax::CssBogus { type Format<'a> = FormatRefWithRule<'a, biome_css_syntax::CssBogus, crate::css::bogus::bogus::FormatCssBogus>; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::bogus::bogus::FormatCssBogus::default()) } } @@ -6464,7 +6170,6 @@ impl IntoFormat for biome_css_syntax::CssBogus { type Format = FormatOwnedWithRule; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::bogus::bogus::FormatCssBogus::default()) } } @@ -6488,7 +6193,6 @@ impl AsFormat for biome_css_syntax::CssBogusAtRule { crate::css::bogus::bogus_at_rule::FormatCssBogusAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_at_rule::FormatCssBogusAtRule::default(), @@ -6501,7 +6205,6 @@ impl IntoFormat for biome_css_syntax::CssBogusAtRule { crate::css::bogus::bogus_at_rule::FormatCssBogusAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_at_rule::FormatCssBogusAtRule::default(), @@ -6528,7 +6231,6 @@ impl AsFormat for biome_css_syntax::CssBogusBlock { crate::css::bogus::bogus_block::FormatCssBogusBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_block::FormatCssBogusBlock::default(), @@ -6541,7 +6243,6 @@ impl IntoFormat for biome_css_syntax::CssBogusBlock { crate::css::bogus::bogus_block::FormatCssBogusBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_block::FormatCssBogusBlock::default(), @@ -6568,7 +6269,6 @@ impl AsFormat for biome_css_syntax::CssBogusCustomIdentifier { crate::css::bogus::bogus_custom_identifier::FormatCssBogusCustomIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_custom_identifier::FormatCssBogusCustomIdentifier::default(), @@ -6581,7 +6281,6 @@ impl IntoFormat for biome_css_syntax::CssBogusCustomIdentifier crate::css::bogus::bogus_custom_identifier::FormatCssBogusCustomIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_custom_identifier::FormatCssBogusCustomIdentifier::default(), @@ -6608,7 +6307,6 @@ impl AsFormat for biome_css_syntax::CssBogusDeclarationItem { crate::css::bogus::bogus_declaration_item::FormatCssBogusDeclarationItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_declaration_item::FormatCssBogusDeclarationItem::default(), @@ -6621,7 +6319,6 @@ impl IntoFormat for biome_css_syntax::CssBogusDeclarationItem crate::css::bogus::bogus_declaration_item::FormatCssBogusDeclarationItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_declaration_item::FormatCssBogusDeclarationItem::default(), @@ -6648,7 +6345,6 @@ impl AsFormat for biome_css_syntax::CssBogusDocumentMatcher { crate::css::bogus::bogus_document_matcher::FormatCssBogusDocumentMatcher, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_document_matcher::FormatCssBogusDocumentMatcher::default(), @@ -6661,7 +6357,6 @@ impl IntoFormat for biome_css_syntax::CssBogusDocumentMatcher crate::css::bogus::bogus_document_matcher::FormatCssBogusDocumentMatcher, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_document_matcher::FormatCssBogusDocumentMatcher::default(), @@ -6688,7 +6383,6 @@ impl AsFormat for biome_css_syntax::CssBogusFontFamilyName { crate::css::bogus::bogus_font_family_name::FormatCssBogusFontFamilyName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_font_family_name::FormatCssBogusFontFamilyName::default(), @@ -6701,7 +6395,6 @@ impl IntoFormat for biome_css_syntax::CssBogusFontFamilyName { crate::css::bogus::bogus_font_family_name::FormatCssBogusFontFamilyName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_font_family_name::FormatCssBogusFontFamilyName::default(), @@ -6728,7 +6421,6 @@ impl AsFormat for biome_css_syntax::CssBogusFontFeatureValuesI crate::css::bogus::bogus_font_feature_values_item::FormatCssBogusFontFeatureValuesItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: bogus :: bogus_font_feature_values_item :: FormatCssBogusFontFeatureValuesItem :: default ()) } } @@ -6738,7 +6430,6 @@ impl IntoFormat for biome_css_syntax::CssBogusFontFeatureValue crate::css::bogus::bogus_font_feature_values_item::FormatCssBogusFontFeatureValuesItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: bogus :: bogus_font_feature_values_item :: FormatCssBogusFontFeatureValuesItem :: default ()) } } @@ -6762,7 +6453,6 @@ impl AsFormat for biome_css_syntax::CssBogusKeyframesItem { crate::css::bogus::bogus_keyframes_item::FormatCssBogusKeyframesItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_keyframes_item::FormatCssBogusKeyframesItem::default(), @@ -6775,7 +6465,6 @@ impl IntoFormat for biome_css_syntax::CssBogusKeyframesItem { crate::css::bogus::bogus_keyframes_item::FormatCssBogusKeyframesItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_keyframes_item::FormatCssBogusKeyframesItem::default(), @@ -6802,7 +6491,6 @@ impl AsFormat for biome_css_syntax::CssBogusKeyframesName { crate::css::bogus::bogus_keyframes_name::FormatCssBogusKeyframesName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_keyframes_name::FormatCssBogusKeyframesName::default(), @@ -6815,7 +6503,6 @@ impl IntoFormat for biome_css_syntax::CssBogusKeyframesName { crate::css::bogus::bogus_keyframes_name::FormatCssBogusKeyframesName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_keyframes_name::FormatCssBogusKeyframesName::default(), @@ -6842,7 +6529,6 @@ impl AsFormat for biome_css_syntax::CssBogusLayer { crate::css::bogus::bogus_layer::FormatCssBogusLayer, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_layer::FormatCssBogusLayer::default(), @@ -6855,7 +6541,6 @@ impl IntoFormat for biome_css_syntax::CssBogusLayer { crate::css::bogus::bogus_layer::FormatCssBogusLayer, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_layer::FormatCssBogusLayer::default(), @@ -6882,7 +6567,6 @@ impl AsFormat for biome_css_syntax::CssBogusMediaQuery { crate::css::bogus::bogus_media_query::FormatCssBogusMediaQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_media_query::FormatCssBogusMediaQuery::default(), @@ -6895,7 +6579,6 @@ impl IntoFormat for biome_css_syntax::CssBogusMediaQuery { crate::css::bogus::bogus_media_query::FormatCssBogusMediaQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_media_query::FormatCssBogusMediaQuery::default(), @@ -6922,7 +6605,6 @@ impl AsFormat for biome_css_syntax::CssBogusPageSelectorPseudo crate::css::bogus::bogus_page_selector_pseudo::FormatCssBogusPageSelectorPseudo, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: bogus :: bogus_page_selector_pseudo :: FormatCssBogusPageSelectorPseudo :: default ()) } } @@ -6932,7 +6614,6 @@ impl IntoFormat for biome_css_syntax::CssBogusPageSelectorPseu crate::css::bogus::bogus_page_selector_pseudo::FormatCssBogusPageSelectorPseudo, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: bogus :: bogus_page_selector_pseudo :: FormatCssBogusPageSelectorPseudo :: default ()) } } @@ -6956,7 +6637,6 @@ impl AsFormat for biome_css_syntax::CssBogusParameter { crate::css::bogus::bogus_parameter::FormatCssBogusParameter, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_parameter::FormatCssBogusParameter::default(), @@ -6969,7 +6649,6 @@ impl IntoFormat for biome_css_syntax::CssBogusParameter { crate::css::bogus::bogus_parameter::FormatCssBogusParameter, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_parameter::FormatCssBogusParameter::default(), @@ -6996,7 +6675,6 @@ impl AsFormat for biome_css_syntax::CssBogusProperty { crate::css::bogus::bogus_property::FormatCssBogusProperty, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_property::FormatCssBogusProperty::default(), @@ -7009,7 +6687,6 @@ impl IntoFormat for biome_css_syntax::CssBogusProperty { crate::css::bogus::bogus_property::FormatCssBogusProperty, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_property::FormatCssBogusProperty::default(), @@ -7036,7 +6713,6 @@ impl AsFormat for biome_css_syntax::CssBogusPropertyValue { crate::css::bogus::bogus_property_value::FormatCssBogusPropertyValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_property_value::FormatCssBogusPropertyValue::default(), @@ -7049,7 +6725,6 @@ impl IntoFormat for biome_css_syntax::CssBogusPropertyValue { crate::css::bogus::bogus_property_value::FormatCssBogusPropertyValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_property_value::FormatCssBogusPropertyValue::default(), @@ -7076,7 +6751,6 @@ impl AsFormat for biome_css_syntax::CssBogusPseudoClass { crate::css::bogus::bogus_pseudo_class::FormatCssBogusPseudoClass, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_pseudo_class::FormatCssBogusPseudoClass::default(), @@ -7089,7 +6763,6 @@ impl IntoFormat for biome_css_syntax::CssBogusPseudoClass { crate::css::bogus::bogus_pseudo_class::FormatCssBogusPseudoClass, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_pseudo_class::FormatCssBogusPseudoClass::default(), @@ -7116,7 +6789,6 @@ impl AsFormat for biome_css_syntax::CssBogusPseudoElement { crate::css::bogus::bogus_pseudo_element::FormatCssBogusPseudoElement, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_pseudo_element::FormatCssBogusPseudoElement::default(), @@ -7129,7 +6801,6 @@ impl IntoFormat for biome_css_syntax::CssBogusPseudoElement { crate::css::bogus::bogus_pseudo_element::FormatCssBogusPseudoElement, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_pseudo_element::FormatCssBogusPseudoElement::default(), @@ -7152,7 +6823,6 @@ impl AsFormat for biome_css_syntax::CssBogusRule { crate::css::bogus::bogus_rule::FormatCssBogusRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_rule::FormatCssBogusRule::default(), @@ -7165,7 +6835,6 @@ impl IntoFormat for biome_css_syntax::CssBogusRule { crate::css::bogus::bogus_rule::FormatCssBogusRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_rule::FormatCssBogusRule::default(), @@ -7192,7 +6861,6 @@ impl AsFormat for biome_css_syntax::CssBogusScopeRange { crate::css::bogus::bogus_scope_range::FormatCssBogusScopeRange, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_scope_range::FormatCssBogusScopeRange::default(), @@ -7205,7 +6873,6 @@ impl IntoFormat for biome_css_syntax::CssBogusScopeRange { crate::css::bogus::bogus_scope_range::FormatCssBogusScopeRange, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_scope_range::FormatCssBogusScopeRange::default(), @@ -7232,7 +6899,6 @@ impl AsFormat for biome_css_syntax::CssBogusSelector { crate::css::bogus::bogus_selector::FormatCssBogusSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_selector::FormatCssBogusSelector::default(), @@ -7245,7 +6911,6 @@ impl IntoFormat for biome_css_syntax::CssBogusSelector { crate::css::bogus::bogus_selector::FormatCssBogusSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_selector::FormatCssBogusSelector::default(), @@ -7272,7 +6937,6 @@ impl AsFormat for biome_css_syntax::CssBogusSubSelector { crate::css::bogus::bogus_sub_selector::FormatCssBogusSubSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_sub_selector::FormatCssBogusSubSelector::default(), @@ -7285,7 +6949,6 @@ impl IntoFormat for biome_css_syntax::CssBogusSubSelector { crate::css::bogus::bogus_sub_selector::FormatCssBogusSubSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_sub_selector::FormatCssBogusSubSelector::default(), @@ -7312,7 +6975,6 @@ impl AsFormat for biome_css_syntax::CssBogusUnicodeRangeValue crate::css::bogus::bogus_unicode_range_value::FormatCssBogusUnicodeRangeValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_unicode_range_value::FormatCssBogusUnicodeRangeValue::default( @@ -7326,7 +6988,6 @@ impl IntoFormat for biome_css_syntax::CssBogusUnicodeRangeValu crate::css::bogus::bogus_unicode_range_value::FormatCssBogusUnicodeRangeValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_unicode_range_value::FormatCssBogusUnicodeRangeValue::default( @@ -7354,7 +7015,6 @@ impl AsFormat for biome_css_syntax::CssBogusUrlModifier { crate::css::bogus::bogus_url_modifier::FormatCssBogusUrlModifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::bogus::bogus_url_modifier::FormatCssBogusUrlModifier::default(), @@ -7367,7 +7027,6 @@ impl IntoFormat for biome_css_syntax::CssBogusUrlModifier { crate::css::bogus::bogus_url_modifier::FormatCssBogusUrlModifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::bogus::bogus_url_modifier::FormatCssBogusUrlModifier::default(), @@ -7394,7 +7053,6 @@ impl AsFormat for biome_css_syntax::CssUnknownAtRuleComponentL crate::css::bogus::unknown_at_rule_component_list::FormatCssUnknownAtRuleComponentList, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: bogus :: unknown_at_rule_component_list :: FormatCssUnknownAtRuleComponentList :: default ()) } } @@ -7404,7 +7062,6 @@ impl IntoFormat for biome_css_syntax::CssUnknownAtRuleComponen crate::css::bogus::unknown_at_rule_component_list::FormatCssUnknownAtRuleComponentList, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: bogus :: unknown_at_rule_component_list :: FormatCssUnknownAtRuleComponentList :: default ()) } } @@ -7428,7 +7085,6 @@ impl AsFormat for biome_css_syntax::CssValueAtRuleGenericValue crate::css::bogus::value_at_rule_generic_value::FormatCssValueAtRuleGenericValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: bogus :: value_at_rule_generic_value :: FormatCssValueAtRuleGenericValue :: default ()) } } @@ -7438,7 +7094,6 @@ impl IntoFormat for biome_css_syntax::CssValueAtRuleGenericVal crate::css::bogus::value_at_rule_generic_value::FormatCssValueAtRuleGenericValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: bogus :: value_at_rule_generic_value :: FormatCssValueAtRuleGenericValue :: default ()) } } @@ -7449,7 +7104,6 @@ impl AsFormat for biome_css_syntax::AnyCssAtRule { crate::css::any::at_rule::FormatAnyCssAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::at_rule::FormatAnyCssAtRule::default(), @@ -7462,7 +7116,6 @@ impl IntoFormat for biome_css_syntax::AnyCssAtRule { crate::css::any::at_rule::FormatAnyCssAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::at_rule::FormatAnyCssAtRule::default(), @@ -7476,7 +7129,6 @@ impl AsFormat for biome_css_syntax::AnyCssAttributeMatcherValu crate::css::any::attribute_matcher_value::FormatAnyCssAttributeMatcherValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::attribute_matcher_value::FormatAnyCssAttributeMatcherValue::default(), @@ -7489,7 +7141,6 @@ impl IntoFormat for biome_css_syntax::AnyCssAttributeMatcherVa crate::css::any::attribute_matcher_value::FormatAnyCssAttributeMatcherValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::attribute_matcher_value::FormatAnyCssAttributeMatcherValue::default(), @@ -7503,7 +7154,6 @@ impl AsFormat for biome_css_syntax::AnyCssComposesImportSource crate::css::any::composes_import_source::FormatAnyCssComposesImportSource, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::composes_import_source::FormatAnyCssComposesImportSource::default(), @@ -7516,7 +7166,6 @@ impl IntoFormat for biome_css_syntax::AnyCssComposesImportSour crate::css::any::composes_import_source::FormatAnyCssComposesImportSource, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::composes_import_source::FormatAnyCssComposesImportSource::default(), @@ -7530,7 +7179,6 @@ impl AsFormat for biome_css_syntax::AnyCssCompoundSelector { crate::css::any::compound_selector::FormatAnyCssCompoundSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::compound_selector::FormatAnyCssCompoundSelector::default(), @@ -7543,7 +7191,6 @@ impl IntoFormat for biome_css_syntax::AnyCssCompoundSelector { crate::css::any::compound_selector::FormatAnyCssCompoundSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::compound_selector::FormatAnyCssCompoundSelector::default(), @@ -7557,7 +7204,6 @@ impl AsFormat for biome_css_syntax::AnyCssConditionalBlock { crate::css::any::conditional_block::FormatAnyCssConditionalBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::conditional_block::FormatAnyCssConditionalBlock::default(), @@ -7570,7 +7216,6 @@ impl IntoFormat for biome_css_syntax::AnyCssConditionalBlock { crate::css::any::conditional_block::FormatAnyCssConditionalBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::conditional_block::FormatAnyCssConditionalBlock::default(), @@ -7584,7 +7229,6 @@ impl AsFormat for biome_css_syntax::AnyCssContainerAndCombinab crate::css::any::container_and_combinable_query::FormatAnyCssContainerAndCombinableQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: container_and_combinable_query :: FormatAnyCssContainerAndCombinableQuery :: default ()) } } @@ -7594,7 +7238,6 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerAndCombin crate::css::any::container_and_combinable_query::FormatAnyCssContainerAndCombinableQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: container_and_combinable_query :: FormatAnyCssContainerAndCombinableQuery :: default ()) } } @@ -7605,7 +7248,6 @@ impl AsFormat for biome_css_syntax::AnyCssContainerOrCombinabl crate::css::any::container_or_combinable_query::FormatAnyCssContainerOrCombinableQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: container_or_combinable_query :: FormatAnyCssContainerOrCombinableQuery :: default ()) } } @@ -7615,7 +7257,6 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerOrCombina crate::css::any::container_or_combinable_query::FormatAnyCssContainerOrCombinableQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: container_or_combinable_query :: FormatAnyCssContainerOrCombinableQuery :: default ()) } } @@ -7626,7 +7267,6 @@ impl AsFormat for biome_css_syntax::AnyCssContainerQuery { crate::css::any::container_query::FormatAnyCssContainerQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::container_query::FormatAnyCssContainerQuery::default(), @@ -7639,7 +7279,6 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerQuery { crate::css::any::container_query::FormatAnyCssContainerQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::container_query::FormatAnyCssContainerQuery::default(), @@ -7653,7 +7292,6 @@ impl AsFormat for biome_css_syntax::AnyCssContainerQueryInPare crate::css::any::container_query_in_parens::FormatAnyCssContainerQueryInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::container_query_in_parens::FormatAnyCssContainerQueryInParens::default( @@ -7667,7 +7305,6 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerQueryInPa crate::css::any::container_query_in_parens::FormatAnyCssContainerQueryInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::container_query_in_parens::FormatAnyCssContainerQueryInParens::default( @@ -7678,14 +7315,12 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerQueryInPa impl AsFormat for biome_css_syntax::AnyCssContainerStyleAndCombinableQuery { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: AnyCssContainerStyleAndCombinableQuery , crate :: css :: any :: container_style_and_combinable_query :: FormatAnyCssContainerStyleAndCombinableQuery > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: container_style_and_combinable_query :: FormatAnyCssContainerStyleAndCombinableQuery :: default ()) } } impl IntoFormat for biome_css_syntax::AnyCssContainerStyleAndCombinableQuery { type Format = FormatOwnedWithRule < biome_css_syntax :: AnyCssContainerStyleAndCombinableQuery , crate :: css :: any :: container_style_and_combinable_query :: FormatAnyCssContainerStyleAndCombinableQuery > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: container_style_and_combinable_query :: FormatAnyCssContainerStyleAndCombinableQuery :: default ()) } } @@ -7696,7 +7331,6 @@ impl AsFormat for biome_css_syntax::AnyCssContainerStyleInPare crate::css::any::container_style_in_parens::FormatAnyCssContainerStyleInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::container_style_in_parens::FormatAnyCssContainerStyleInParens::default( @@ -7710,7 +7344,6 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerStyleInPa crate::css::any::container_style_in_parens::FormatAnyCssContainerStyleInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::container_style_in_parens::FormatAnyCssContainerStyleInParens::default( @@ -7721,14 +7354,12 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerStyleInPa impl AsFormat for biome_css_syntax::AnyCssContainerStyleOrCombinableQuery { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: AnyCssContainerStyleOrCombinableQuery , crate :: css :: any :: container_style_or_combinable_query :: FormatAnyCssContainerStyleOrCombinableQuery > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: container_style_or_combinable_query :: FormatAnyCssContainerStyleOrCombinableQuery :: default ()) } } impl IntoFormat for biome_css_syntax::AnyCssContainerStyleOrCombinableQuery { type Format = FormatOwnedWithRule < biome_css_syntax :: AnyCssContainerStyleOrCombinableQuery , crate :: css :: any :: container_style_or_combinable_query :: FormatAnyCssContainerStyleOrCombinableQuery > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: container_style_or_combinable_query :: FormatAnyCssContainerStyleOrCombinableQuery :: default ()) } } @@ -7739,7 +7370,6 @@ impl AsFormat for biome_css_syntax::AnyCssContainerStyleQuery crate::css::any::container_style_query::FormatAnyCssContainerStyleQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::container_style_query::FormatAnyCssContainerStyleQuery::default(), @@ -7752,7 +7382,6 @@ impl IntoFormat for biome_css_syntax::AnyCssContainerStyleQuer crate::css::any::container_style_query::FormatAnyCssContainerStyleQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::container_style_query::FormatAnyCssContainerStyleQuery::default(), @@ -7766,7 +7395,6 @@ impl AsFormat for biome_css_syntax::AnyCssCustomIdentifier { crate::css::any::custom_identifier::FormatAnyCssCustomIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::custom_identifier::FormatAnyCssCustomIdentifier::default(), @@ -7779,7 +7407,6 @@ impl IntoFormat for biome_css_syntax::AnyCssCustomIdentifier { crate::css::any::custom_identifier::FormatAnyCssCustomIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::custom_identifier::FormatAnyCssCustomIdentifier::default(), @@ -7793,7 +7420,6 @@ impl AsFormat for biome_css_syntax::AnyCssDeclarationBlock { crate::css::any::declaration_block::FormatAnyCssDeclarationBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::declaration_block::FormatAnyCssDeclarationBlock::default(), @@ -7806,7 +7432,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDeclarationBlock { crate::css::any::declaration_block::FormatAnyCssDeclarationBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::declaration_block::FormatAnyCssDeclarationBlock::default(), @@ -7820,7 +7445,6 @@ impl AsFormat for biome_css_syntax::AnyCssDeclarationName { crate::css::any::declaration_name::FormatAnyCssDeclarationName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::declaration_name::FormatAnyCssDeclarationName::default(), @@ -7833,7 +7457,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDeclarationName { crate::css::any::declaration_name::FormatAnyCssDeclarationName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::declaration_name::FormatAnyCssDeclarationName::default(), @@ -7847,7 +7470,6 @@ impl AsFormat for biome_css_syntax::AnyCssDeclarationOrAtRule crate::css::any::declaration_or_at_rule::FormatAnyCssDeclarationOrAtRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::declaration_or_at_rule::FormatAnyCssDeclarationOrAtRule::default(), @@ -7860,7 +7482,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDeclarationOrAtRul crate::css::any::declaration_or_at_rule::FormatAnyCssDeclarationOrAtRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::declaration_or_at_rule::FormatAnyCssDeclarationOrAtRule::default(), @@ -7874,7 +7495,6 @@ impl AsFormat for biome_css_syntax::AnyCssDeclarationOrAtRuleB crate::css::any::declaration_or_at_rule_block::FormatAnyCssDeclarationOrAtRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: declaration_or_at_rule_block :: FormatAnyCssDeclarationOrAtRuleBlock :: default ()) } } @@ -7884,7 +7504,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDeclarationOrAtRul crate::css::any::declaration_or_at_rule_block::FormatAnyCssDeclarationOrAtRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: declaration_or_at_rule_block :: FormatAnyCssDeclarationOrAtRuleBlock :: default ()) } } @@ -7895,7 +7514,6 @@ impl AsFormat for biome_css_syntax::AnyCssDeclarationOrRule { crate::css::any::declaration_or_rule::FormatAnyCssDeclarationOrRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::declaration_or_rule::FormatAnyCssDeclarationOrRule::default(), @@ -7908,7 +7526,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDeclarationOrRule crate::css::any::declaration_or_rule::FormatAnyCssDeclarationOrRule, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::declaration_or_rule::FormatAnyCssDeclarationOrRule::default(), @@ -7922,7 +7539,6 @@ impl AsFormat for biome_css_syntax::AnyCssDeclarationOrRuleBlo crate::css::any::declaration_or_rule_block::FormatAnyCssDeclarationOrRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::declaration_or_rule_block::FormatAnyCssDeclarationOrRuleBlock::default( @@ -7936,7 +7552,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDeclarationOrRuleB crate::css::any::declaration_or_rule_block::FormatAnyCssDeclarationOrRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::declaration_or_rule_block::FormatAnyCssDeclarationOrRuleBlock::default( @@ -7951,7 +7566,6 @@ impl AsFormat for biome_css_syntax::AnyCssDimension { crate::css::any::dimension::FormatAnyCssDimension, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::dimension::FormatAnyCssDimension::default(), @@ -7964,7 +7578,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDimension { crate::css::any::dimension::FormatAnyCssDimension, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::dimension::FormatAnyCssDimension::default(), @@ -7978,7 +7591,6 @@ impl AsFormat for biome_css_syntax::AnyCssDocumentMatcher { crate::css::any::document_matcher::FormatAnyCssDocumentMatcher, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::document_matcher::FormatAnyCssDocumentMatcher::default(), @@ -7991,7 +7603,6 @@ impl IntoFormat for biome_css_syntax::AnyCssDocumentMatcher { crate::css::any::document_matcher::FormatAnyCssDocumentMatcher, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::document_matcher::FormatAnyCssDocumentMatcher::default(), @@ -8005,7 +7616,6 @@ impl AsFormat for biome_css_syntax::AnyCssExpression { crate::css::any::expression::FormatAnyCssExpression, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::expression::FormatAnyCssExpression::default(), @@ -8018,7 +7628,6 @@ impl IntoFormat for biome_css_syntax::AnyCssExpression { crate::css::any::expression::FormatAnyCssExpression, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::expression::FormatAnyCssExpression::default(), @@ -8032,7 +7641,6 @@ impl AsFormat for biome_css_syntax::AnyCssFontFamilyName { crate::css::any::font_family_name::FormatAnyCssFontFamilyName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::font_family_name::FormatAnyCssFontFamilyName::default(), @@ -8045,7 +7653,6 @@ impl IntoFormat for biome_css_syntax::AnyCssFontFamilyName { crate::css::any::font_family_name::FormatAnyCssFontFamilyName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::font_family_name::FormatAnyCssFontFamilyName::default(), @@ -8059,7 +7666,6 @@ impl AsFormat for biome_css_syntax::AnyCssFontFeatureValuesBlo crate::css::any::font_feature_values_block::FormatAnyCssFontFeatureValuesBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::font_feature_values_block::FormatAnyCssFontFeatureValuesBlock::default( @@ -8073,7 +7679,6 @@ impl IntoFormat for biome_css_syntax::AnyCssFontFeatureValuesB crate::css::any::font_feature_values_block::FormatAnyCssFontFeatureValuesBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::font_feature_values_block::FormatAnyCssFontFeatureValuesBlock::default( @@ -8088,7 +7693,6 @@ impl AsFormat for biome_css_syntax::AnyCssFontFeatureValuesIte crate::css::any::font_feature_values_item::FormatAnyCssFontFeatureValuesItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::font_feature_values_item::FormatAnyCssFontFeatureValuesItem::default(), @@ -8101,7 +7705,6 @@ impl IntoFormat for biome_css_syntax::AnyCssFontFeatureValuesI crate::css::any::font_feature_values_item::FormatAnyCssFontFeatureValuesItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::font_feature_values_item::FormatAnyCssFontFeatureValuesItem::default(), @@ -8115,7 +7718,6 @@ impl AsFormat for biome_css_syntax::AnyCssFunction { crate::css::any::function::FormatAnyCssFunction, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::function::FormatAnyCssFunction::default(), @@ -8128,7 +7730,6 @@ impl IntoFormat for biome_css_syntax::AnyCssFunction { crate::css::any::function::FormatAnyCssFunction, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::function::FormatAnyCssFunction::default(), @@ -8142,7 +7743,6 @@ impl AsFormat for biome_css_syntax::AnyCssGenericComponentValu crate::css::any::generic_component_value::FormatAnyCssGenericComponentValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::generic_component_value::FormatAnyCssGenericComponentValue::default(), @@ -8155,7 +7755,6 @@ impl IntoFormat for biome_css_syntax::AnyCssGenericComponentVa crate::css::any::generic_component_value::FormatAnyCssGenericComponentValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::generic_component_value::FormatAnyCssGenericComponentValue::default(), @@ -8169,7 +7768,6 @@ impl AsFormat for biome_css_syntax::AnyCssImportLayer { crate::css::any::import_layer::FormatAnyCssImportLayer, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::import_layer::FormatAnyCssImportLayer::default(), @@ -8182,7 +7780,6 @@ impl IntoFormat for biome_css_syntax::AnyCssImportLayer { crate::css::any::import_layer::FormatAnyCssImportLayer, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::import_layer::FormatAnyCssImportLayer::default(), @@ -8196,7 +7793,6 @@ impl AsFormat for biome_css_syntax::AnyCssImportSupportsCondit crate::css::any::import_supports_condition::FormatAnyCssImportSupportsCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: import_supports_condition :: FormatAnyCssImportSupportsCondition :: default ()) } } @@ -8206,7 +7802,6 @@ impl IntoFormat for biome_css_syntax::AnyCssImportSupportsCond crate::css::any::import_supports_condition::FormatAnyCssImportSupportsCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: import_supports_condition :: FormatAnyCssImportSupportsCondition :: default ()) } } @@ -8217,7 +7812,6 @@ impl AsFormat for biome_css_syntax::AnyCssImportUrl { crate::css::any::import_url::FormatAnyCssImportUrl, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::import_url::FormatAnyCssImportUrl::default(), @@ -8230,7 +7824,6 @@ impl IntoFormat for biome_css_syntax::AnyCssImportUrl { crate::css::any::import_url::FormatAnyCssImportUrl, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::import_url::FormatAnyCssImportUrl::default(), @@ -8244,7 +7837,6 @@ impl AsFormat for biome_css_syntax::AnyCssKeyframesBlock { crate::css::any::keyframes_block::FormatAnyCssKeyframesBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::keyframes_block::FormatAnyCssKeyframesBlock::default(), @@ -8257,7 +7849,6 @@ impl IntoFormat for biome_css_syntax::AnyCssKeyframesBlock { crate::css::any::keyframes_block::FormatAnyCssKeyframesBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::keyframes_block::FormatAnyCssKeyframesBlock::default(), @@ -8271,7 +7862,6 @@ impl AsFormat for biome_css_syntax::AnyCssKeyframesIdentifier crate::css::any::keyframes_identifier::FormatAnyCssKeyframesIdentifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::keyframes_identifier::FormatAnyCssKeyframesIdentifier::default(), @@ -8284,7 +7874,6 @@ impl IntoFormat for biome_css_syntax::AnyCssKeyframesIdentifie crate::css::any::keyframes_identifier::FormatAnyCssKeyframesIdentifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::keyframes_identifier::FormatAnyCssKeyframesIdentifier::default(), @@ -8298,7 +7887,6 @@ impl AsFormat for biome_css_syntax::AnyCssKeyframesItem { crate::css::any::keyframes_item::FormatAnyCssKeyframesItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::keyframes_item::FormatAnyCssKeyframesItem::default(), @@ -8311,7 +7899,6 @@ impl IntoFormat for biome_css_syntax::AnyCssKeyframesItem { crate::css::any::keyframes_item::FormatAnyCssKeyframesItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::keyframes_item::FormatAnyCssKeyframesItem::default(), @@ -8325,7 +7912,6 @@ impl AsFormat for biome_css_syntax::AnyCssKeyframesName { crate::css::any::keyframes_name::FormatAnyCssKeyframesName, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::keyframes_name::FormatAnyCssKeyframesName::default(), @@ -8338,7 +7924,6 @@ impl IntoFormat for biome_css_syntax::AnyCssKeyframesName { crate::css::any::keyframes_name::FormatAnyCssKeyframesName, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::keyframes_name::FormatAnyCssKeyframesName::default(), @@ -8352,7 +7937,6 @@ impl AsFormat for biome_css_syntax::AnyCssKeyframesScope { crate::css::any::keyframes_scope::FormatAnyCssKeyframesScope, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::keyframes_scope::FormatAnyCssKeyframesScope::default(), @@ -8365,7 +7949,6 @@ impl IntoFormat for biome_css_syntax::AnyCssKeyframesScope { crate::css::any::keyframes_scope::FormatAnyCssKeyframesScope, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::keyframes_scope::FormatAnyCssKeyframesScope::default(), @@ -8379,7 +7962,6 @@ impl AsFormat for biome_css_syntax::AnyCssKeyframesSelector { crate::css::any::keyframes_selector::FormatAnyCssKeyframesSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::keyframes_selector::FormatAnyCssKeyframesSelector::default(), @@ -8392,7 +7974,6 @@ impl IntoFormat for biome_css_syntax::AnyCssKeyframesSelector crate::css::any::keyframes_selector::FormatAnyCssKeyframesSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::keyframes_selector::FormatAnyCssKeyframesSelector::default(), @@ -8406,7 +7987,6 @@ impl AsFormat for biome_css_syntax::AnyCssLayer { crate::css::any::layer::FormatAnyCssLayer, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::any::layer::FormatAnyCssLayer::default()) } } @@ -8416,7 +7996,6 @@ impl IntoFormat for biome_css_syntax::AnyCssLayer { crate::css::any::layer::FormatAnyCssLayer, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::any::layer::FormatAnyCssLayer::default()) } } @@ -8427,7 +8006,6 @@ impl AsFormat for biome_css_syntax::AnyCssMediaAndCombinableCo crate::css::any::media_and_combinable_condition::FormatAnyCssMediaAndCombinableCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: media_and_combinable_condition :: FormatAnyCssMediaAndCombinableCondition :: default ()) } } @@ -8437,7 +8015,6 @@ impl IntoFormat for biome_css_syntax::AnyCssMediaAndCombinable crate::css::any::media_and_combinable_condition::FormatAnyCssMediaAndCombinableCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: media_and_combinable_condition :: FormatAnyCssMediaAndCombinableCondition :: default ()) } } @@ -8448,7 +8025,6 @@ impl AsFormat for biome_css_syntax::AnyCssMediaCondition { crate::css::any::media_condition::FormatAnyCssMediaCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::media_condition::FormatAnyCssMediaCondition::default(), @@ -8461,7 +8037,6 @@ impl IntoFormat for biome_css_syntax::AnyCssMediaCondition { crate::css::any::media_condition::FormatAnyCssMediaCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::media_condition::FormatAnyCssMediaCondition::default(), @@ -8475,7 +8050,6 @@ impl AsFormat for biome_css_syntax::AnyCssMediaInParens { crate::css::any::media_in_parens::FormatAnyCssMediaInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::media_in_parens::FormatAnyCssMediaInParens::default(), @@ -8488,7 +8062,6 @@ impl IntoFormat for biome_css_syntax::AnyCssMediaInParens { crate::css::any::media_in_parens::FormatAnyCssMediaInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::media_in_parens::FormatAnyCssMediaInParens::default(), @@ -8502,7 +8075,6 @@ impl AsFormat for biome_css_syntax::AnyCssMediaOrCombinableCon crate::css::any::media_or_combinable_condition::FormatAnyCssMediaOrCombinableCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: media_or_combinable_condition :: FormatAnyCssMediaOrCombinableCondition :: default ()) } } @@ -8512,7 +8084,6 @@ impl IntoFormat for biome_css_syntax::AnyCssMediaOrCombinableC crate::css::any::media_or_combinable_condition::FormatAnyCssMediaOrCombinableCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: media_or_combinable_condition :: FormatAnyCssMediaOrCombinableCondition :: default ()) } } @@ -8523,7 +8094,6 @@ impl AsFormat for biome_css_syntax::AnyCssMediaQuery { crate::css::any::media_query::FormatAnyCssMediaQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::media_query::FormatAnyCssMediaQuery::default(), @@ -8536,7 +8106,6 @@ impl IntoFormat for biome_css_syntax::AnyCssMediaQuery { crate::css::any::media_query::FormatAnyCssMediaQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::media_query::FormatAnyCssMediaQuery::default(), @@ -8550,7 +8119,6 @@ impl AsFormat for biome_css_syntax::AnyCssMediaTypeCondition { crate::css::any::media_type_condition::FormatAnyCssMediaTypeCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::media_type_condition::FormatAnyCssMediaTypeCondition::default(), @@ -8563,7 +8131,6 @@ impl IntoFormat for biome_css_syntax::AnyCssMediaTypeCondition crate::css::any::media_type_condition::FormatAnyCssMediaTypeCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::media_type_condition::FormatAnyCssMediaTypeCondition::default(), @@ -8577,7 +8144,6 @@ impl AsFormat for biome_css_syntax::AnyCssMediaTypeQuery { crate::css::any::media_type_query::FormatAnyCssMediaTypeQuery, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::media_type_query::FormatAnyCssMediaTypeQuery::default(), @@ -8590,7 +8156,6 @@ impl IntoFormat for biome_css_syntax::AnyCssMediaTypeQuery { crate::css::any::media_type_query::FormatAnyCssMediaTypeQuery, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::media_type_query::FormatAnyCssMediaTypeQuery::default(), @@ -8604,7 +8169,6 @@ impl AsFormat for biome_css_syntax::AnyCssNamespacePrefix { crate::css::any::namespace_prefix::FormatAnyCssNamespacePrefix, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::namespace_prefix::FormatAnyCssNamespacePrefix::default(), @@ -8617,7 +8181,6 @@ impl IntoFormat for biome_css_syntax::AnyCssNamespacePrefix { crate::css::any::namespace_prefix::FormatAnyCssNamespacePrefix, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::namespace_prefix::FormatAnyCssNamespacePrefix::default(), @@ -8631,7 +8194,6 @@ impl AsFormat for biome_css_syntax::AnyCssNamespaceUrl { crate::css::any::namespace_url::FormatAnyCssNamespaceUrl, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::namespace_url::FormatAnyCssNamespaceUrl::default(), @@ -8644,7 +8206,6 @@ impl IntoFormat for biome_css_syntax::AnyCssNamespaceUrl { crate::css::any::namespace_url::FormatAnyCssNamespaceUrl, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::namespace_url::FormatAnyCssNamespaceUrl::default(), @@ -8658,7 +8219,6 @@ impl AsFormat for biome_css_syntax::AnyCssPageAtRuleBlock { crate::css::any::page_at_rule_block::FormatAnyCssPageAtRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::page_at_rule_block::FormatAnyCssPageAtRuleBlock::default(), @@ -8671,7 +8231,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPageAtRuleBlock { crate::css::any::page_at_rule_block::FormatAnyCssPageAtRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::page_at_rule_block::FormatAnyCssPageAtRuleBlock::default(), @@ -8685,7 +8244,6 @@ impl AsFormat for biome_css_syntax::AnyCssPageAtRuleItem { crate::css::any::page_at_rule_item::FormatAnyCssPageAtRuleItem, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::page_at_rule_item::FormatAnyCssPageAtRuleItem::default(), @@ -8698,7 +8256,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPageAtRuleItem { crate::css::any::page_at_rule_item::FormatAnyCssPageAtRuleItem, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::page_at_rule_item::FormatAnyCssPageAtRuleItem::default(), @@ -8712,7 +8269,6 @@ impl AsFormat for biome_css_syntax::AnyCssPageSelector { crate::css::any::page_selector::FormatAnyCssPageSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::page_selector::FormatAnyCssPageSelector::default(), @@ -8725,7 +8281,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPageSelector { crate::css::any::page_selector::FormatAnyCssPageSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::page_selector::FormatAnyCssPageSelector::default(), @@ -8739,7 +8294,6 @@ impl AsFormat for biome_css_syntax::AnyCssPageSelectorPseudo { crate::css::any::page_selector_pseudo::FormatAnyCssPageSelectorPseudo, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::page_selector_pseudo::FormatAnyCssPageSelectorPseudo::default(), @@ -8752,7 +8306,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPageSelectorPseudo crate::css::any::page_selector_pseudo::FormatAnyCssPageSelectorPseudo, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::page_selector_pseudo::FormatAnyCssPageSelectorPseudo::default(), @@ -8766,7 +8319,6 @@ impl AsFormat for biome_css_syntax::AnyCssProperty { crate::css::any::property::FormatAnyCssProperty, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::property::FormatAnyCssProperty::default(), @@ -8779,7 +8331,6 @@ impl IntoFormat for biome_css_syntax::AnyCssProperty { crate::css::any::property::FormatAnyCssProperty, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::property::FormatAnyCssProperty::default(), @@ -8793,7 +8344,6 @@ impl AsFormat for biome_css_syntax::AnyCssPseudoClass { crate::css::any::pseudo_class::FormatAnyCssPseudoClass, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::pseudo_class::FormatAnyCssPseudoClass::default(), @@ -8806,7 +8356,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPseudoClass { crate::css::any::pseudo_class::FormatAnyCssPseudoClass, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::pseudo_class::FormatAnyCssPseudoClass::default(), @@ -8820,7 +8369,6 @@ impl AsFormat for biome_css_syntax::AnyCssPseudoClassNth { crate::css::any::pseudo_class_nth::FormatAnyCssPseudoClassNth, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::pseudo_class_nth::FormatAnyCssPseudoClassNth::default(), @@ -8833,7 +8381,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPseudoClassNth { crate::css::any::pseudo_class_nth::FormatAnyCssPseudoClassNth, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::pseudo_class_nth::FormatAnyCssPseudoClassNth::default(), @@ -8847,7 +8394,6 @@ impl AsFormat for biome_css_syntax::AnyCssPseudoClassNthSelect crate::css::any::pseudo_class_nth_selector::FormatAnyCssPseudoClassNthSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::pseudo_class_nth_selector::FormatAnyCssPseudoClassNthSelector::default( @@ -8861,7 +8407,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPseudoClassNthSele crate::css::any::pseudo_class_nth_selector::FormatAnyCssPseudoClassNthSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::pseudo_class_nth_selector::FormatAnyCssPseudoClassNthSelector::default( @@ -8876,7 +8421,6 @@ impl AsFormat for biome_css_syntax::AnyCssPseudoElement { crate::css::any::pseudo_element::FormatAnyCssPseudoElement, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::pseudo_element::FormatAnyCssPseudoElement::default(), @@ -8889,7 +8433,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPseudoElement { crate::css::any::pseudo_element::FormatAnyCssPseudoElement, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::pseudo_element::FormatAnyCssPseudoElement::default(), @@ -8903,7 +8446,6 @@ impl AsFormat for biome_css_syntax::AnyCssPseudoValue { crate::css::any::pseudo_value::FormatAnyCssPseudoValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::pseudo_value::FormatAnyCssPseudoValue::default(), @@ -8916,7 +8458,6 @@ impl IntoFormat for biome_css_syntax::AnyCssPseudoValue { crate::css::any::pseudo_value::FormatAnyCssPseudoValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::pseudo_value::FormatAnyCssPseudoValue::default(), @@ -8930,7 +8471,6 @@ impl AsFormat for biome_css_syntax::AnyCssQueryFeature { crate::css::any::query_feature::FormatAnyCssQueryFeature, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::query_feature::FormatAnyCssQueryFeature::default(), @@ -8943,7 +8483,6 @@ impl IntoFormat for biome_css_syntax::AnyCssQueryFeature { crate::css::any::query_feature::FormatAnyCssQueryFeature, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::query_feature::FormatAnyCssQueryFeature::default(), @@ -8957,7 +8496,6 @@ impl AsFormat for biome_css_syntax::AnyCssQueryFeatureValue { crate::css::any::query_feature_value::FormatAnyCssQueryFeatureValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::query_feature_value::FormatAnyCssQueryFeatureValue::default(), @@ -8970,7 +8508,6 @@ impl IntoFormat for biome_css_syntax::AnyCssQueryFeatureValue crate::css::any::query_feature_value::FormatAnyCssQueryFeatureValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::query_feature_value::FormatAnyCssQueryFeatureValue::default(), @@ -8984,7 +8521,6 @@ impl AsFormat for biome_css_syntax::AnyCssRelativeSelector { crate::css::any::relative_selector::FormatAnyCssRelativeSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::relative_selector::FormatAnyCssRelativeSelector::default(), @@ -8997,7 +8533,6 @@ impl IntoFormat for biome_css_syntax::AnyCssRelativeSelector { crate::css::any::relative_selector::FormatAnyCssRelativeSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::relative_selector::FormatAnyCssRelativeSelector::default(), @@ -9011,7 +8546,6 @@ impl AsFormat for biome_css_syntax::AnyCssRule { crate::css::any::rule::FormatAnyCssRule, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::any::rule::FormatAnyCssRule::default()) } } @@ -9019,7 +8553,6 @@ impl IntoFormat for biome_css_syntax::AnyCssRule { type Format = FormatOwnedWithRule; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::any::rule::FormatAnyCssRule::default()) } } @@ -9030,7 +8563,6 @@ impl AsFormat for biome_css_syntax::AnyCssRuleBlock { crate::css::any::rule_block::FormatAnyCssRuleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::rule_block::FormatAnyCssRuleBlock::default(), @@ -9043,7 +8575,6 @@ impl IntoFormat for biome_css_syntax::AnyCssRuleBlock { crate::css::any::rule_block::FormatAnyCssRuleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::rule_block::FormatAnyCssRuleBlock::default(), @@ -9057,7 +8588,6 @@ impl AsFormat for biome_css_syntax::AnyCssScopeRange { crate::css::any::scope_range::FormatAnyCssScopeRange, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::scope_range::FormatAnyCssScopeRange::default(), @@ -9070,7 +8600,6 @@ impl IntoFormat for biome_css_syntax::AnyCssScopeRange { crate::css::any::scope_range::FormatAnyCssScopeRange, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::scope_range::FormatAnyCssScopeRange::default(), @@ -9084,7 +8613,6 @@ impl AsFormat for biome_css_syntax::AnyCssSelector { crate::css::any::selector::FormatAnyCssSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::selector::FormatAnyCssSelector::default(), @@ -9097,7 +8625,6 @@ impl IntoFormat for biome_css_syntax::AnyCssSelector { crate::css::any::selector::FormatAnyCssSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::selector::FormatAnyCssSelector::default(), @@ -9111,7 +8638,6 @@ impl AsFormat for biome_css_syntax::AnyCssSimpleSelector { crate::css::any::simple_selector::FormatAnyCssSimpleSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::simple_selector::FormatAnyCssSimpleSelector::default(), @@ -9124,7 +8650,6 @@ impl IntoFormat for biome_css_syntax::AnyCssSimpleSelector { crate::css::any::simple_selector::FormatAnyCssSimpleSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::simple_selector::FormatAnyCssSimpleSelector::default(), @@ -9138,7 +8663,6 @@ impl AsFormat for biome_css_syntax::AnyCssStartingStyleBlock { crate::css::any::starting_style_block::FormatAnyCssStartingStyleBlock, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::starting_style_block::FormatAnyCssStartingStyleBlock::default(), @@ -9151,7 +8675,6 @@ impl IntoFormat for biome_css_syntax::AnyCssStartingStyleBlock crate::css::any::starting_style_block::FormatAnyCssStartingStyleBlock, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::starting_style_block::FormatAnyCssStartingStyleBlock::default(), @@ -9165,7 +8688,6 @@ impl AsFormat for biome_css_syntax::AnyCssSubSelector { crate::css::any::sub_selector::FormatAnyCssSubSelector, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::sub_selector::FormatAnyCssSubSelector::default(), @@ -9178,7 +8700,6 @@ impl IntoFormat for biome_css_syntax::AnyCssSubSelector { crate::css::any::sub_selector::FormatAnyCssSubSelector, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::sub_selector::FormatAnyCssSubSelector::default(), @@ -9188,14 +8709,12 @@ impl IntoFormat for biome_css_syntax::AnyCssSubSelector { impl AsFormat for biome_css_syntax::AnyCssSupportsAndCombinableCondition { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: AnyCssSupportsAndCombinableCondition , crate :: css :: any :: supports_and_combinable_condition :: FormatAnyCssSupportsAndCombinableCondition > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: supports_and_combinable_condition :: FormatAnyCssSupportsAndCombinableCondition :: default ()) } } impl IntoFormat for biome_css_syntax::AnyCssSupportsAndCombinableCondition { type Format = FormatOwnedWithRule < biome_css_syntax :: AnyCssSupportsAndCombinableCondition , crate :: css :: any :: supports_and_combinable_condition :: FormatAnyCssSupportsAndCombinableCondition > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: supports_and_combinable_condition :: FormatAnyCssSupportsAndCombinableCondition :: default ()) } } @@ -9206,7 +8725,6 @@ impl AsFormat for biome_css_syntax::AnyCssSupportsCondition { crate::css::any::supports_condition::FormatAnyCssSupportsCondition, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::supports_condition::FormatAnyCssSupportsCondition::default(), @@ -9219,7 +8737,6 @@ impl IntoFormat for biome_css_syntax::AnyCssSupportsCondition crate::css::any::supports_condition::FormatAnyCssSupportsCondition, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::supports_condition::FormatAnyCssSupportsCondition::default(), @@ -9233,7 +8750,6 @@ impl AsFormat for biome_css_syntax::AnyCssSupportsInParens { crate::css::any::supports_in_parens::FormatAnyCssSupportsInParens, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::supports_in_parens::FormatAnyCssSupportsInParens::default(), @@ -9246,7 +8762,6 @@ impl IntoFormat for biome_css_syntax::AnyCssSupportsInParens { crate::css::any::supports_in_parens::FormatAnyCssSupportsInParens, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::supports_in_parens::FormatAnyCssSupportsInParens::default(), @@ -9256,14 +8771,12 @@ impl IntoFormat for biome_css_syntax::AnyCssSupportsInParens { impl AsFormat for biome_css_syntax::AnyCssSupportsOrCombinableCondition { type Format < 'a > = FormatRefWithRule < 'a , biome_css_syntax :: AnyCssSupportsOrCombinableCondition , crate :: css :: any :: supports_or_combinable_condition :: FormatAnyCssSupportsOrCombinableCondition > ; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: supports_or_combinable_condition :: FormatAnyCssSupportsOrCombinableCondition :: default ()) } } impl IntoFormat for biome_css_syntax::AnyCssSupportsOrCombinableCondition { type Format = FormatOwnedWithRule < biome_css_syntax :: AnyCssSupportsOrCombinableCondition , crate :: css :: any :: supports_or_combinable_condition :: FormatAnyCssSupportsOrCombinableCondition > ; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: supports_or_combinable_condition :: FormatAnyCssSupportsOrCombinableCondition :: default ()) } } @@ -9274,7 +8787,6 @@ impl AsFormat for biome_css_syntax::AnyCssUnicodeValue { crate::css::any::unicode_value::FormatAnyCssUnicodeValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::unicode_value::FormatAnyCssUnicodeValue::default(), @@ -9287,7 +8799,6 @@ impl IntoFormat for biome_css_syntax::AnyCssUnicodeValue { crate::css::any::unicode_value::FormatAnyCssUnicodeValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::unicode_value::FormatAnyCssUnicodeValue::default(), @@ -9301,7 +8812,6 @@ impl AsFormat for biome_css_syntax::AnyCssUrlModifier { crate::css::any::url_modifier::FormatAnyCssUrlModifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::url_modifier::FormatAnyCssUrlModifier::default(), @@ -9314,7 +8824,6 @@ impl IntoFormat for biome_css_syntax::AnyCssUrlModifier { crate::css::any::url_modifier::FormatAnyCssUrlModifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::url_modifier::FormatAnyCssUrlModifier::default(), @@ -9328,7 +8837,6 @@ impl AsFormat for biome_css_syntax::AnyCssUrlValue { crate::css::any::url_value::FormatAnyCssUrlValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::url_value::FormatAnyCssUrlValue::default(), @@ -9341,7 +8849,6 @@ impl IntoFormat for biome_css_syntax::AnyCssUrlValue { crate::css::any::url_value::FormatAnyCssUrlValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::url_value::FormatAnyCssUrlValue::default(), @@ -9355,7 +8862,6 @@ impl AsFormat for biome_css_syntax::AnyCssValue { crate::css::any::value::FormatAnyCssValue, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new(self, crate::css::any::value::FormatAnyCssValue::default()) } } @@ -9365,7 +8871,6 @@ impl IntoFormat for biome_css_syntax::AnyCssValue { crate::css::any::value::FormatAnyCssValue, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new(self, crate::css::any::value::FormatAnyCssValue::default()) } } @@ -9376,7 +8881,6 @@ impl AsFormat for biome_css_syntax::AnyCssValueAtRuleClause { crate::css::any::value_at_rule_clause::FormatAnyCssValueAtRuleClause, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::value_at_rule_clause::FormatAnyCssValueAtRuleClause::default(), @@ -9389,7 +8893,6 @@ impl IntoFormat for biome_css_syntax::AnyCssValueAtRuleClause crate::css::any::value_at_rule_clause::FormatAnyCssValueAtRuleClause, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::value_at_rule_clause::FormatAnyCssValueAtRuleClause::default(), @@ -9403,7 +8906,6 @@ impl AsFormat for biome_css_syntax::AnyCssValueAtRuleImportSou crate::css::any::value_at_rule_import_source::FormatAnyCssValueAtRuleImportSource, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: value_at_rule_import_source :: FormatAnyCssValueAtRuleImportSource :: default ()) } } @@ -9413,7 +8915,6 @@ impl IntoFormat for biome_css_syntax::AnyCssValueAtRuleImportS crate::css::any::value_at_rule_import_source::FormatAnyCssValueAtRuleImportSource, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: value_at_rule_import_source :: FormatAnyCssValueAtRuleImportSource :: default ()) } } @@ -9424,7 +8925,6 @@ impl AsFormat for biome_css_syntax::AnyCssValueAtRuleImportSpe crate::css::any::value_at_rule_import_specifier::FormatAnyCssValueAtRuleImportSpecifier, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule :: new (self , crate :: css :: any :: value_at_rule_import_specifier :: FormatAnyCssValueAtRuleImportSpecifier :: default ()) } } @@ -9434,7 +8934,6 @@ impl IntoFormat for biome_css_syntax::AnyCssValueAtRuleImportS crate::css::any::value_at_rule_import_specifier::FormatAnyCssValueAtRuleImportSpecifier, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule :: new (self , crate :: css :: any :: value_at_rule_import_specifier :: FormatAnyCssValueAtRuleImportSpecifier :: default ()) } } @@ -9445,7 +8944,6 @@ impl AsFormat for biome_css_syntax::AnyCssValueAtRuleProperty crate::css::any::value_at_rule_property::FormatAnyCssValueAtRuleProperty, >; fn format(&self) -> Self::Format<'_> { - #![allow(clippy::default_constructed_unit_structs)] FormatRefWithRule::new( self, crate::css::any::value_at_rule_property::FormatAnyCssValueAtRuleProperty::default(), @@ -9458,7 +8956,6 @@ impl IntoFormat for biome_css_syntax::AnyCssValueAtRulePropert crate::css::any::value_at_rule_property::FormatAnyCssValueAtRuleProperty, >; fn into_format(self) -> Self::Format { - #![allow(clippy::default_constructed_unit_structs)] FormatOwnedWithRule::new( self, crate::css::any::value_at_rule_property::FormatAnyCssValueAtRuleProperty::default(), diff --git a/crates/biome_css_formatter/src/prelude.rs b/crates/biome_css_formatter/src/prelude.rs index 9d74d80aa65e..92be37fabab3 100644 --- a/crates/biome_css_formatter/src/prelude.rs +++ b/crates/biome_css_formatter/src/prelude.rs @@ -1,14 +1,12 @@ //! This module provides important and useful traits to help to format tokens and nodes //! when implementing the [crate::FormatNodeRule] trait. +#![allow(unused_imports)] -#[allow(unused_imports)] +pub(crate) use crate::separated::FormatAstSeparatedListExtension; pub(crate) use crate::{ AsFormat, CssFormatContext, CssFormatter, FormatNodeRule, FormattedIterExt as _, IntoFormat, }; pub(crate) use biome_formatter::prelude::*; -#[allow(unused_imports)] pub(crate) use biome_rowan::{ AstNode as _, AstNodeList as _, AstNodeSlotMap as _, AstSeparatedList as _, }; - -pub(crate) use crate::separated::FormatAstSeparatedListExtension; diff --git a/crates/biome_css_formatter/src/separated.rs b/crates/biome_css_formatter/src/separated.rs index 83d8f1abffd6..48ecdcd9221f 100644 --- a/crates/biome_css_formatter/src/separated.rs +++ b/crates/biome_css_formatter/src/separated.rs @@ -101,7 +101,7 @@ type CssFormatSeparatedIterWithOptions = FormatSeparatedIter< >; /// AST Separated list formatting extension methods with options -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) trait FormatAstSeparatedListWithOptionsExtension: AstSeparatedList { diff --git a/crates/biome_css_parser/src/lexer/mod.rs b/crates/biome_css_parser/src/lexer/mod.rs index 1ab710860676..bd6336da52bc 100644 --- a/crates/biome_css_parser/src/lexer/mod.rs +++ b/crates/biome_css_parser/src/lexer/mod.rs @@ -55,7 +55,7 @@ impl LexContext for CssLexContext { /// Context in which the [CssLexContext]'s current should be re-lexed. #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub enum CssReLexContext { - #[allow(dead_code)] + #[expect(dead_code)] Regular, /// See [CssLexContext::UnicodeRange] UnicodeRange, @@ -922,6 +922,8 @@ impl<'src> CssLexer<'src> { b"value" => VALUE_KW, b"as" => AS_KW, b"composes" => COMPOSES_KW, + b"position-try" => POSITION_TRY_KW, + b"view-transition" => VIEW_TRANSITION_KW, _ => IDENT, } } diff --git a/crates/biome_css_parser/src/lexer/tests.rs b/crates/biome_css_parser/src/lexer/tests.rs index e47068eee100..e7c396290fbc 100644 --- a/crates/biome_css_parser/src/lexer/tests.rs +++ b/crates/biome_css_parser/src/lexer/tests.rs @@ -1,5 +1,5 @@ #![cfg(test)] -#![allow(unused_mut, unused_variables, unused_assignments)] +#![expect(unused_mut, unused_variables)] use super::{CssLexer, TextSize}; use crate::lexer::CssLexContext; @@ -88,11 +88,7 @@ fn losslessness(string: String) -> bool { }); let token_ranges = receiver .recv_timeout(Duration::from_secs(2)) - .unwrap_or_else(|_| { - panic!( - "Lexer is infinitely recursing with this code: ->{string}<-" - ) - }); + .unwrap_or_else(|_| panic!("Lexer is infinitely recursing with this code: ->{string}<-")); let mut new_str = String::with_capacity(string.len()); let mut idx = TextSize::from(0); diff --git a/crates/biome_css_parser/src/syntax/at_rule/mod.rs b/crates/biome_css_parser/src/syntax/at_rule/mod.rs index a6a05a15b5ed..71eefb684adb 100644 --- a/crates/biome_css_parser/src/syntax/at_rule/mod.rs +++ b/crates/biome_css_parser/src/syntax/at_rule/mod.rs @@ -14,12 +14,14 @@ mod media; mod namespace; mod page; mod parse_error; +mod position_try; mod property; mod scope; mod starting_style; mod supports; mod unknown; mod value; +mod view_transition; use crate::parser::CssParser; use crate::syntax::at_rule::charset::parse_charset_at_rule; @@ -36,12 +38,14 @@ use crate::syntax::at_rule::layer::parse_layer_at_rule; use crate::syntax::at_rule::media::parse_media_at_rule; use crate::syntax::at_rule::namespace::parse_namespace_at_rule; use crate::syntax::at_rule::page::parse_page_at_rule; +use crate::syntax::at_rule::position_try::parse_position_try_at_rule; use crate::syntax::at_rule::property::parse_property_at_rule; use crate::syntax::at_rule::scope::parse_scope_at_rule; use crate::syntax::at_rule::starting_style::parse_starting_style_at_rule; use crate::syntax::at_rule::supports::parse_supports_at_rule; use crate::syntax::at_rule::unknown::{is_at_unknown_at_rule, parse_unknown_at_rule}; use crate::syntax::at_rule::value::parse_value_at_rule; +use crate::syntax::at_rule::view_transition::parse_view_transition_at_rule; use crate::syntax::parse_error::expected_any_at_rule; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::T; @@ -99,6 +103,8 @@ pub(crate) fn parse_any_at_rule(p: &mut CssParser) -> ParsedSyntax { T![document] => parse_document_at_rule(p), T![property] => parse_property_at_rule(p), T![value] => parse_value_at_rule(p), + T![position_try] => parse_position_try_at_rule(p), + T![view_transition] => parse_view_transition_at_rule(p), _ if is_at_unknown_at_rule(p) => parse_unknown_at_rule(p), _ => Absent, } diff --git a/crates/biome_css_parser/src/syntax/at_rule/position_try.rs b/crates/biome_css_parser/src/syntax/at_rule/position_try.rs new file mode 100644 index 000000000000..a81d66ebd86d --- /dev/null +++ b/crates/biome_css_parser/src/syntax/at_rule/position_try.rs @@ -0,0 +1,49 @@ +use crate::syntax::block::parse_declaration_block; +use crate::syntax::parse_dashed_identifier; +use crate::{parser::CssParser, syntax::parse_error::expected_dashed_identifier}; +use biome_css_syntax::{ + CssSyntaxKind::{self, *}, + T, +}; +use biome_parser::{ + parse_recovery::ParseRecoveryTokenSet, + parsed_syntax::ParsedSyntax::{self, Present}, + prelude::ParsedSyntax::Absent, + token_set, Parser, TokenSet, +}; + +#[inline] +pub(crate) fn is_at_position_try_at_rule(p: &mut CssParser) -> bool { + p.at(T![position_try]) +} + +#[inline] +pub(crate) fn parse_position_try_at_rule(p: &mut CssParser) -> ParsedSyntax { + if !is_at_position_try_at_rule(p) { + return Absent; + } + + let m = p.start(); + + p.bump(T![position_try]); + + let kind = if parse_dashed_identifier(p) + .or_recover_with_token_set( + p, + &ParseRecoveryTokenSet::new(CSS_BOGUS, POSITION_TRY_RECOVERY_SET) + .enable_recovery_on_line_break(), + expected_dashed_identifier, + ) + .is_ok() + { + CSS_POSITION_TRY_AT_RULE + } else { + CSS_BOGUS_AT_RULE + }; + + parse_declaration_block(p); + + Present(m.complete(p, kind)) +} + +const POSITION_TRY_RECOVERY_SET: TokenSet = token_set![T!['{']]; diff --git a/crates/biome_css_parser/src/syntax/at_rule/view_transition.rs b/crates/biome_css_parser/src/syntax/at_rule/view_transition.rs new file mode 100644 index 000000000000..a3ff9d4eff95 --- /dev/null +++ b/crates/biome_css_parser/src/syntax/at_rule/view_transition.rs @@ -0,0 +1,33 @@ +use crate::parser::CssParser; +use crate::syntax::block::parse_declaration_block; +use biome_css_syntax::{CssSyntaxKind::*, T}; +use biome_parser::{ + parsed_syntax::ParsedSyntax::{self, Present}, + prelude::ParsedSyntax::Absent, + Parser, +}; + +#[inline] +pub(crate) fn is_at_view_transition_at_rule(p: &mut CssParser) -> bool { + p.at(T![view_transition]) +} + +#[inline] +pub(crate) fn parse_view_transition_at_rule(p: &mut CssParser) -> ParsedSyntax { + if !is_at_view_transition_at_rule(p) { + return Absent; + } + + let m = p.start(); + + p.bump(T![view_transition]); + + let kind = if p.at(T!['{']) { + parse_declaration_block(p); + CSS_VIEW_TRANSITION_AT_RULE + } else { + CSS_BOGUS_AT_RULE + }; + + Present(m.complete(p, kind)) +} diff --git a/crates/biome_css_parser/src/syntax/mod.rs b/crates/biome_css_parser/src/syntax/mod.rs index bcbef3f85650..26bec37b7a5f 100644 --- a/crates/biome_css_parser/src/syntax/mod.rs +++ b/crates/biome_css_parser/src/syntax/mod.rs @@ -586,7 +586,6 @@ impl ParseRecovery for BracketedValueListRecovery { /// preserved. If parsing fails, this function rewinds the parser back to /// where it was before attempting the parse and the `Err` value is returned. #[must_use = "The result of try_parse contains information about whether the parse succeeded and should not be ignored"] -#[allow(dead_code)] pub(crate) fn try_parse( p: &mut CssParser, func: impl FnOnce(&mut CssParser) -> Result, diff --git a/crates/biome_css_parser/src/syntax/value/dimension.rs b/crates/biome_css_parser/src/syntax/value/dimension.rs index 844f886e0150..f7972a39eecf 100644 --- a/crates/biome_css_parser/src/syntax/value/dimension.rs +++ b/crates/biome_css_parser/src/syntax/value/dimension.rs @@ -178,54 +178,54 @@ fn is_nth_at_flex_unit(p: &mut CssParser, n: usize) -> bool { p.nth_at_ts(n, FLEX_UNIT_SET) } -// TODO: In the future, remove the `#[allow(dead_code)]` as these get used. +// TODO: In the future, remove the `#[expect(dead_code)]` as these get used. /// Returns true if the parser is currently at the start of a RegularDimension /// that will become a Length value #[inline] -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) fn is_at_length_dimension(p: &mut CssParser) -> bool { is_at_regular_dimension(p) && is_nth_at_length_unit(p, 1) } /// Returns true if the parser is currently at the start of a RegularDimension /// that will become a Length value #[inline] -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) fn is_at_container_lengths_dimension(p: &mut CssParser) -> bool { is_at_regular_dimension(p) && is_nth_at_container_lengths_unit(p, 1) } /// Returns true if the parser is currently at the start of a RegularDimension /// that will become an Angle value #[inline] -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) fn is_at_angle_dimension(p: &mut CssParser) -> bool { is_at_regular_dimension(p) && is_nth_at_angle_unit(p, 1) } /// Returns true if the parser is currently at the start of a RegularDimension /// that will become a Time value #[inline] -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) fn is_at_time_dimension(p: &mut CssParser) -> bool { is_at_regular_dimension(p) && is_nth_at_time_unit(p, 1) } /// Returns true if the parser is currently at the start of a RegularDimension /// that will become a Frequency value #[inline] -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) fn is_at_frequency_dimension(p: &mut CssParser) -> bool { is_at_regular_dimension(p) && is_nth_at_frequency_unit(p, 1) } /// Returns true if the parser is currently at the start of a RegularDimension /// that will become a Resolution value #[inline] -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) fn is_at_resolution_dimension(p: &mut CssParser) -> bool { is_at_regular_dimension(p) && is_nth_at_resolution_unit(p, 1) } /// Returns true if the parser is currently at the start of a RegularDimension /// that will become a Flex value #[inline] -#[allow(dead_code)] +#[expect(dead_code)] pub(crate) fn is_at_flex_dimension(p: &mut CssParser) -> bool { is_at_regular_dimension(p) && is_nth_at_flex_unit(p, 1) } diff --git a/crates/biome_css_parser/src/token_source.rs b/crates/biome_css_parser/src/token_source.rs index 05dd5e80cb45..83173768e780 100644 --- a/crates/biome_css_parser/src/token_source.rs +++ b/crates/biome_css_parser/src/token_source.rs @@ -15,7 +15,6 @@ pub(crate) struct CssTokenSource<'src> { pub(super) trivia_list: Vec, } -#[allow(dead_code)] pub(crate) type CssTokenSourceCheckpoint = TokenSourceCheckpoint; impl<'src> CssTokenSource<'src> { @@ -68,7 +67,6 @@ impl<'src> CssTokenSource<'src> { } /// Creates a checkpoint to which it can later return using [Self::rewind]. - #[allow(dead_code)] pub fn checkpoint(&self) -> CssTokenSourceCheckpoint { CssTokenSourceCheckpoint { trivia_len: self.trivia_list.len() as u32, diff --git a/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_position_try.css b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_position_try.css new file mode 100644 index 000000000000..a63844f4781d --- /dev/null +++ b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_position_try.css @@ -0,0 +1,9 @@ +@position-try --ident { } +@position-try --AnyCASInG-works { } + +@position-try --custom-bottom { + top: anchor(bottom); + justify-self: anchor-center; + margin: 10px 0 0 0; + position-area: none; +} diff --git a/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_position_try.css.snap b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_position_try.css.snap new file mode 100644 index 000000000000..32c0ae2b9c83 --- /dev/null +++ b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_position_try.css.snap @@ -0,0 +1,267 @@ +--- +source: crates/biome_css_parser/tests/spec_test.rs +expression: snapshot +snapshot_kind: text +--- +## Input + +```css +@position-try --ident { } +@position-try --AnyCASInG-works { } + +@position-try --custom-bottom { + top: anchor(bottom); + justify-self: anchor-center; + margin: 10px 0 0 0; + position-area: none; +} + +``` + + +## AST + +``` +CssRoot { + bom_token: missing (optional), + rules: CssRuleList [ + CssAtRule { + at_token: AT@0..1 "@" [] [], + rule: CssPositionTryAtRule { + position_try_token: POSITION_TRY_KW@1..14 "position-try" [] [Whitespace(" ")], + name: CssDashedIdentifier { + value_token: IDENT@14..22 "--ident" [] [Whitespace(" ")], + }, + block: CssDeclarationBlock { + l_curly_token: L_CURLY@22..24 "{" [] [Whitespace(" ")], + declarations: CssDeclarationList [], + r_curly_token: R_CURLY@24..25 "}" [] [], + }, + }, + }, + CssAtRule { + at_token: AT@25..27 "@" [Newline("\n")] [], + rule: CssPositionTryAtRule { + position_try_token: POSITION_TRY_KW@27..40 "position-try" [] [Whitespace(" ")], + name: CssDashedIdentifier { + value_token: IDENT@40..58 "--AnyCASInG-works" [] [Whitespace(" ")], + }, + block: CssDeclarationBlock { + l_curly_token: L_CURLY@58..60 "{" [] [Whitespace(" ")], + declarations: CssDeclarationList [], + r_curly_token: R_CURLY@60..61 "}" [] [], + }, + }, + }, + CssAtRule { + at_token: AT@61..64 "@" [Newline("\n"), Newline("\n")] [], + rule: CssPositionTryAtRule { + position_try_token: POSITION_TRY_KW@64..77 "position-try" [] [Whitespace(" ")], + name: CssDashedIdentifier { + value_token: IDENT@77..93 "--custom-bottom" [] [Whitespace(" ")], + }, + block: CssDeclarationBlock { + l_curly_token: L_CURLY@93..94 "{" [] [], + declarations: CssDeclarationList [ + CssDeclarationWithSemicolon { + declaration: CssDeclaration { + property: CssGenericProperty { + name: CssIdentifier { + value_token: IDENT@94..100 "top" [Newline("\n"), Whitespace(" ")] [], + }, + colon_token: COLON@100..102 ":" [] [Whitespace(" ")], + value: CssGenericComponentValueList [ + CssFunction { + name: CssIdentifier { + value_token: IDENT@102..108 "anchor" [] [], + }, + l_paren_token: L_PAREN@108..109 "(" [] [], + items: CssParameterList [ + CssParameter { + any_css_expression: CssListOfComponentValuesExpression { + css_component_value_list: CssComponentValueList [ + CssIdentifier { + value_token: IDENT@109..115 "bottom" [] [], + }, + ], + }, + }, + ], + r_paren_token: R_PAREN@115..116 ")" [] [], + }, + ], + }, + important: missing (optional), + }, + semicolon_token: SEMICOLON@116..117 ";" [] [], + }, + CssDeclarationWithSemicolon { + declaration: CssDeclaration { + property: CssGenericProperty { + name: CssIdentifier { + value_token: IDENT@117..132 "justify-self" [Newline("\n"), Whitespace(" ")] [], + }, + colon_token: COLON@132..134 ":" [] [Whitespace(" ")], + value: CssGenericComponentValueList [ + CssIdentifier { + value_token: IDENT@134..147 "anchor-center" [] [], + }, + ], + }, + important: missing (optional), + }, + semicolon_token: SEMICOLON@147..148 ";" [] [], + }, + CssDeclarationWithSemicolon { + declaration: CssDeclaration { + property: CssGenericProperty { + name: CssIdentifier { + value_token: IDENT@148..157 "margin" [Newline("\n"), Whitespace(" ")] [], + }, + colon_token: COLON@157..159 ":" [] [Whitespace(" ")], + value: CssGenericComponentValueList [ + CssRegularDimension { + value_token: CSS_NUMBER_LITERAL@159..161 "10" [] [], + unit_token: IDENT@161..164 "px" [] [Whitespace(" ")], + }, + CssNumber { + value_token: CSS_NUMBER_LITERAL@164..166 "0" [] [Whitespace(" ")], + }, + CssNumber { + value_token: CSS_NUMBER_LITERAL@166..168 "0" [] [Whitespace(" ")], + }, + CssNumber { + value_token: CSS_NUMBER_LITERAL@168..169 "0" [] [], + }, + ], + }, + important: missing (optional), + }, + semicolon_token: SEMICOLON@169..170 ";" [] [], + }, + CssDeclarationWithSemicolon { + declaration: CssDeclaration { + property: CssGenericProperty { + name: CssIdentifier { + value_token: IDENT@170..186 "position-area" [Newline("\n"), Whitespace(" ")] [], + }, + colon_token: COLON@186..188 ":" [] [Whitespace(" ")], + value: CssGenericComponentValueList [ + CssIdentifier { + value_token: IDENT@188..192 "none" [] [], + }, + ], + }, + important: missing (optional), + }, + semicolon_token: SEMICOLON@192..193 ";" [] [], + }, + ], + r_curly_token: R_CURLY@193..195 "}" [Newline("\n")] [], + }, + }, + }, + ], + eof_token: EOF@195..196 "" [Newline("\n")] [], +} +``` + +## CST + +``` +0: CSS_ROOT@0..196 + 0: (empty) + 1: CSS_RULE_LIST@0..195 + 0: CSS_AT_RULE@0..25 + 0: AT@0..1 "@" [] [] + 1: CSS_POSITION_TRY_AT_RULE@1..25 + 0: POSITION_TRY_KW@1..14 "position-try" [] [Whitespace(" ")] + 1: CSS_DASHED_IDENTIFIER@14..22 + 0: IDENT@14..22 "--ident" [] [Whitespace(" ")] + 2: CSS_DECLARATION_BLOCK@22..25 + 0: L_CURLY@22..24 "{" [] [Whitespace(" ")] + 1: CSS_DECLARATION_LIST@24..24 + 2: R_CURLY@24..25 "}" [] [] + 1: CSS_AT_RULE@25..61 + 0: AT@25..27 "@" [Newline("\n")] [] + 1: CSS_POSITION_TRY_AT_RULE@27..61 + 0: POSITION_TRY_KW@27..40 "position-try" [] [Whitespace(" ")] + 1: CSS_DASHED_IDENTIFIER@40..58 + 0: IDENT@40..58 "--AnyCASInG-works" [] [Whitespace(" ")] + 2: CSS_DECLARATION_BLOCK@58..61 + 0: L_CURLY@58..60 "{" [] [Whitespace(" ")] + 1: CSS_DECLARATION_LIST@60..60 + 2: R_CURLY@60..61 "}" [] [] + 2: CSS_AT_RULE@61..195 + 0: AT@61..64 "@" [Newline("\n"), Newline("\n")] [] + 1: CSS_POSITION_TRY_AT_RULE@64..195 + 0: POSITION_TRY_KW@64..77 "position-try" [] [Whitespace(" ")] + 1: CSS_DASHED_IDENTIFIER@77..93 + 0: IDENT@77..93 "--custom-bottom" [] [Whitespace(" ")] + 2: CSS_DECLARATION_BLOCK@93..195 + 0: L_CURLY@93..94 "{" [] [] + 1: CSS_DECLARATION_LIST@94..193 + 0: CSS_DECLARATION_WITH_SEMICOLON@94..117 + 0: CSS_DECLARATION@94..116 + 0: CSS_GENERIC_PROPERTY@94..116 + 0: CSS_IDENTIFIER@94..100 + 0: IDENT@94..100 "top" [Newline("\n"), Whitespace(" ")] [] + 1: COLON@100..102 ":" [] [Whitespace(" ")] + 2: CSS_GENERIC_COMPONENT_VALUE_LIST@102..116 + 0: CSS_FUNCTION@102..116 + 0: CSS_IDENTIFIER@102..108 + 0: IDENT@102..108 "anchor" [] [] + 1: L_PAREN@108..109 "(" [] [] + 2: CSS_PARAMETER_LIST@109..115 + 0: CSS_PARAMETER@109..115 + 0: CSS_LIST_OF_COMPONENT_VALUES_EXPRESSION@109..115 + 0: CSS_COMPONENT_VALUE_LIST@109..115 + 0: CSS_IDENTIFIER@109..115 + 0: IDENT@109..115 "bottom" [] [] + 3: R_PAREN@115..116 ")" [] [] + 1: (empty) + 1: SEMICOLON@116..117 ";" [] [] + 1: CSS_DECLARATION_WITH_SEMICOLON@117..148 + 0: CSS_DECLARATION@117..147 + 0: CSS_GENERIC_PROPERTY@117..147 + 0: CSS_IDENTIFIER@117..132 + 0: IDENT@117..132 "justify-self" [Newline("\n"), Whitespace(" ")] [] + 1: COLON@132..134 ":" [] [Whitespace(" ")] + 2: CSS_GENERIC_COMPONENT_VALUE_LIST@134..147 + 0: CSS_IDENTIFIER@134..147 + 0: IDENT@134..147 "anchor-center" [] [] + 1: (empty) + 1: SEMICOLON@147..148 ";" [] [] + 2: CSS_DECLARATION_WITH_SEMICOLON@148..170 + 0: CSS_DECLARATION@148..169 + 0: CSS_GENERIC_PROPERTY@148..169 + 0: CSS_IDENTIFIER@148..157 + 0: IDENT@148..157 "margin" [Newline("\n"), Whitespace(" ")] [] + 1: COLON@157..159 ":" [] [Whitespace(" ")] + 2: CSS_GENERIC_COMPONENT_VALUE_LIST@159..169 + 0: CSS_REGULAR_DIMENSION@159..164 + 0: CSS_NUMBER_LITERAL@159..161 "10" [] [] + 1: IDENT@161..164 "px" [] [Whitespace(" ")] + 1: CSS_NUMBER@164..166 + 0: CSS_NUMBER_LITERAL@164..166 "0" [] [Whitespace(" ")] + 2: CSS_NUMBER@166..168 + 0: CSS_NUMBER_LITERAL@166..168 "0" [] [Whitespace(" ")] + 3: CSS_NUMBER@168..169 + 0: CSS_NUMBER_LITERAL@168..169 "0" [] [] + 1: (empty) + 1: SEMICOLON@169..170 ";" [] [] + 3: CSS_DECLARATION_WITH_SEMICOLON@170..193 + 0: CSS_DECLARATION@170..192 + 0: CSS_GENERIC_PROPERTY@170..192 + 0: CSS_IDENTIFIER@170..186 + 0: IDENT@170..186 "position-area" [Newline("\n"), Whitespace(" ")] [] + 1: COLON@186..188 ":" [] [Whitespace(" ")] + 2: CSS_GENERIC_COMPONENT_VALUE_LIST@188..192 + 0: CSS_IDENTIFIER@188..192 + 0: IDENT@188..192 "none" [] [] + 1: (empty) + 1: SEMICOLON@192..193 ";" [] [] + 2: R_CURLY@193..195 "}" [Newline("\n")] [] + 2: EOF@195..196 "" [Newline("\n")] [] + +``` diff --git a/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_view_transition.css b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_view_transition.css new file mode 100644 index 000000000000..a9a794347eff --- /dev/null +++ b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_view_transition.css @@ -0,0 +1,5 @@ +@view-transition { } + +@view-transition { + navigation: auto; +} diff --git a/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_view_transition.css.snap b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_view_transition.css.snap new file mode 100644 index 000000000000..8cb410ec7404 --- /dev/null +++ b/crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_view_transition.css.snap @@ -0,0 +1,104 @@ +--- +source: crates/biome_css_parser/tests/spec_test.rs +expression: snapshot +snapshot_kind: text +--- +## Input + +```css +@view-transition { } + +@view-transition { + navigation: auto; +} + +``` + + +## AST + +``` +CssRoot { + bom_token: missing (optional), + rules: CssRuleList [ + CssAtRule { + at_token: AT@0..1 "@" [] [], + rule: CssViewTransitionAtRule { + view_transition_token: VIEW_TRANSITION_KW@1..17 "view-transition" [] [Whitespace(" ")], + block: CssDeclarationBlock { + l_curly_token: L_CURLY@17..19 "{" [] [Whitespace(" ")], + declarations: CssDeclarationList [], + r_curly_token: R_CURLY@19..20 "}" [] [], + }, + }, + }, + CssAtRule { + at_token: AT@20..23 "@" [Newline("\n"), Newline("\n")] [], + rule: CssViewTransitionAtRule { + view_transition_token: VIEW_TRANSITION_KW@23..39 "view-transition" [] [Whitespace(" ")], + block: CssDeclarationBlock { + l_curly_token: L_CURLY@39..40 "{" [] [], + declarations: CssDeclarationList [ + CssDeclarationWithSemicolon { + declaration: CssDeclaration { + property: CssGenericProperty { + name: CssIdentifier { + value_token: IDENT@40..53 "navigation" [Newline("\n"), Whitespace(" ")] [], + }, + colon_token: COLON@53..55 ":" [] [Whitespace(" ")], + value: CssGenericComponentValueList [ + CssIdentifier { + value_token: IDENT@55..59 "auto" [] [], + }, + ], + }, + important: missing (optional), + }, + semicolon_token: SEMICOLON@59..60 ";" [] [], + }, + ], + r_curly_token: R_CURLY@60..62 "}" [Newline("\n")] [], + }, + }, + }, + ], + eof_token: EOF@62..63 "" [Newline("\n")] [], +} +``` + +## CST + +``` +0: CSS_ROOT@0..63 + 0: (empty) + 1: CSS_RULE_LIST@0..62 + 0: CSS_AT_RULE@0..20 + 0: AT@0..1 "@" [] [] + 1: CSS_VIEW_TRANSITION_AT_RULE@1..20 + 0: VIEW_TRANSITION_KW@1..17 "view-transition" [] [Whitespace(" ")] + 1: CSS_DECLARATION_BLOCK@17..20 + 0: L_CURLY@17..19 "{" [] [Whitespace(" ")] + 1: CSS_DECLARATION_LIST@19..19 + 2: R_CURLY@19..20 "}" [] [] + 1: CSS_AT_RULE@20..62 + 0: AT@20..23 "@" [Newline("\n"), Newline("\n")] [] + 1: CSS_VIEW_TRANSITION_AT_RULE@23..62 + 0: VIEW_TRANSITION_KW@23..39 "view-transition" [] [Whitespace(" ")] + 1: CSS_DECLARATION_BLOCK@39..62 + 0: L_CURLY@39..40 "{" [] [] + 1: CSS_DECLARATION_LIST@40..60 + 0: CSS_DECLARATION_WITH_SEMICOLON@40..60 + 0: CSS_DECLARATION@40..59 + 0: CSS_GENERIC_PROPERTY@40..59 + 0: CSS_IDENTIFIER@40..53 + 0: IDENT@40..53 "navigation" [Newline("\n"), Whitespace(" ")] [] + 1: COLON@53..55 ":" [] [Whitespace(" ")] + 2: CSS_GENERIC_COMPONENT_VALUE_LIST@55..59 + 0: CSS_IDENTIFIER@55..59 + 0: IDENT@55..59 "auto" [] [] + 1: (empty) + 1: SEMICOLON@59..60 ";" [] [] + 2: R_CURLY@60..62 "}" [Newline("\n")] [] + 2: EOF@62..63 "" [Newline("\n")] [] + +``` diff --git a/crates/biome_css_parser/tests/spec_tests.rs b/crates/biome_css_parser/tests/spec_tests.rs index 25931c93eb93..05869ff747de 100644 --- a/crates/biome_css_parser/tests/spec_tests.rs +++ b/crates/biome_css_parser/tests/spec_tests.rs @@ -1,5 +1,3 @@ -#![allow(non_snake_case)] - mod spec_test; mod ok { diff --git a/crates/biome_css_semantic/src/events.rs b/crates/biome_css_semantic/src/events.rs index d8deeffe9655..dc1746e3f891 100644 --- a/crates/biome_css_semantic/src/events.rs +++ b/crates/biome_css_semantic/src/events.rs @@ -65,7 +65,8 @@ impl SemanticEventExtractor { // allowing for proper scoping and inheritance of styles. kind if kind == CSS_QUALIFIED_RULE || kind == CSS_NESTED_QUALIFIED_RULE - || kind == CSS_MEDIA_AT_RULE => + || kind == CSS_MEDIA_AT_RULE + || kind == CSS_SUPPORTS_AT_RULE => { let range = node.text_range_with_trivia(); self.stash.push_back(SemanticEvent::RuleStart(range)); @@ -95,6 +96,10 @@ impl SemanticEventExtractor { .for_each(|s| self.process_selector(s)); } CSS_DECLARATION => { + if matches!(node.parent().kind(), Some(CSS_SUPPORTS_FEATURE_DECLARATION)) { + return; + } + if let Some(property_name) = node.first_child().and_then(|p| p.first_child()) { if let Some(value) = property_name.next_sibling() { self.stash.push_back(SemanticEvent::PropertyDeclaration { diff --git a/crates/biome_css_syntax/src/file_source.rs b/crates/biome_css_syntax/src/file_source.rs index a37b9e647163..84ee182e3537 100644 --- a/crates/biome_css_syntax/src/file_source.rs +++ b/crates/biome_css_syntax/src/file_source.rs @@ -8,8 +8,6 @@ use camino::Utf8Path; )] #[serde(rename_all = "camelCase")] pub struct CssFileSource { - // Unused until we potentially support postcss/less/sass - #[allow(unused)] variant: CssVariant, } diff --git a/crates/biome_css_syntax/src/generated/kind.rs b/crates/biome_css_syntax/src/generated/kind.rs index 4ebc23ac9ae2..eed7cddaef66 100644 --- a/crates/biome_css_syntax/src/generated/kind.rs +++ b/crates/biome_css_syntax/src/generated/kind.rs @@ -1,6 +1,5 @@ //! Generated file, do not edit by hand, see `xtask/codegen` -#![allow(clippy::all)] #![allow(bad_style, missing_docs, unreachable_pub)] #[doc = r" The kind of syntax node, e.g. `IDENT`, `FUNCTION_KW`, or `FOR_STMT`."] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] @@ -231,6 +230,8 @@ pub enum CssSyntaxKind { VALUE_KW, AS_KW, COMPOSES_KW, + POSITION_TRY_KW, + VIEW_TRANSITION_KW, FONT_FACE_KW, CSS_STRING_LITERAL, CSS_NUMBER_LITERAL, @@ -414,6 +415,7 @@ pub enum CssSyntaxKind { CSS_PAGE_SELECTOR_PSEUDO, CSS_PAGE_AT_RULE_BLOCK, CSS_PAGE_AT_RULE_ITEM_LIST, + CSS_POSITION_TRY_AT_RULE, CSS_MARGIN_AT_RULE, CSS_LAYER_AT_RULE, CSS_LAYER_REFERENCE, @@ -450,6 +452,7 @@ pub enum CssSyntaxKind { CSS_VALUE_AT_RULE_DECLARATION_CLAUSE, CSS_VALUE_AT_RULE_GENERIC_PROPERTY, CSS_VALUE_AT_RULE_GENERIC_VALUE, + CSS_VIEW_TRANSITION_AT_RULE, CSS_UNKNOWN_BLOCK_AT_RULE, CSS_UNKNOWN_VALUE_AT_RULE, CSS_UNKNOWN_AT_RULE_COMPONENT_LIST, @@ -485,72 +488,109 @@ pub enum CssSyntaxKind { use self::CssSyntaxKind::*; impl CssSyntaxKind { pub const fn is_punct(self) -> bool { - match self { - SEMICOLON | COMMA | L_PAREN | R_PAREN | L_CURLY | R_CURLY | L_BRACK | R_BRACK - | L_ANGLE | R_ANGLE | TILDE | HASH | AMP | PIPE | PIPE2 | PLUS | STAR | SLASH - | CARET | PERCENT | DOT | COLON | COLON2 | EQ | BANG | NEQ | MINUS | LTEQ | GTEQ - | PLUSEQ | PIPEEQ | AMPEQ | CARETEQ | SLASHEQ | STAREQ | PERCENTEQ | AT | DOLLAR_EQ - | TILDE_EQ | CDC | CDO | UNICODE => true, - _ => false, - } + matches!( + self, + SEMICOLON + | COMMA + | L_PAREN + | R_PAREN + | L_CURLY + | R_CURLY + | L_BRACK + | R_BRACK + | L_ANGLE + | R_ANGLE + | TILDE + | HASH + | AMP + | PIPE + | PIPE2 + | PLUS + | STAR + | SLASH + | CARET + | PERCENT + | DOT + | COLON + | COLON2 + | EQ + | BANG + | NEQ + | MINUS + | LTEQ + | GTEQ + | PLUSEQ + | PIPEEQ + | AMPEQ + | CARETEQ + | SLASHEQ + | STAREQ + | PERCENTEQ + | AT + | DOLLAR_EQ + | TILDE_EQ + | CDC + | CDO + | UNICODE + ) } pub const fn is_literal(self) -> bool { - match self { + matches!( + self, CSS_STRING_LITERAL - | CSS_NUMBER_LITERAL - | CSS_DASHED_IDENTIFIER - | CSS_CUSTOM_IDENTIFIER - | CSS_SPACE_LITERAL - | CSS_URL_VALUE_RAW_LITERAL - | CSS_COLOR_LITERAL - | CSS_DIMENSION_VALUE - | CSS_PERCENTAGE_VALUE - | CSS_UNICODE_CODEPOINT_LITERAL - | CSS_UNICODE_RANGE_WILDCARD_LITERAL => true, - _ => false, - } + | CSS_NUMBER_LITERAL + | CSS_DASHED_IDENTIFIER + | CSS_CUSTOM_IDENTIFIER + | CSS_SPACE_LITERAL + | CSS_URL_VALUE_RAW_LITERAL + | CSS_COLOR_LITERAL + | CSS_DIMENSION_VALUE + | CSS_PERCENTAGE_VALUE + | CSS_UNICODE_CODEPOINT_LITERAL + | CSS_UNICODE_RANGE_WILDCARD_LITERAL + ) } pub const fn is_list(self) -> bool { - match self { + matches!( + self, CSS_RULE_LIST - | CSS_SELECTOR_LIST - | CSS_DECLARATION_OR_RULE_LIST - | CSS_DECLARATION_OR_AT_RULE_LIST - | CSS_ATTRIBUTE_LIST - | CSS_DECLARATION_LIST - | CSS_COMPONENT_VALUE_LIST - | CSS_GENERIC_COMPONENT_VALUE_LIST - | CSS_COMPOSES_CLASS_LIST - | CSS_PARAMETER_LIST - | CSS_ANY_SELECTOR_LIST - | CSS_SUB_SELECTOR_LIST - | CSS_NESTED_SELECTOR_LIST - | CSS_PSEUDO_CLASS_FUNCTION_SELECTOR_LIST - | CSS_PSEUDO_CLASS_FUNCTION_COMPOUND_SELECTOR_LIST - | CSS_COMPOUND_SELECTOR_LIST - | CSS_PSEUDO_CLASS_FUNCTION_RELATIVE_SELECTOR_LIST - | CSS_RELATIVE_SELECTOR_LIST - | CSS_PSEUDO_CLASS_FUNCTION_VALUE_LIST - | CSS_PSEUDO_VALUE_LIST - | CSS_URL_MODIFIER_LIST - | CSS_BRACKETED_VALUE_LIST - | CSS_FONT_FAMILY_NAME_LIST - | CSS_CUSTOM_IDENTIFIER_LIST - | CSS_FONT_FEATURE_VALUES_ITEM_LIST - | CSS_MEDIA_QUERY_LIST - | CSS_KEYFRAMES_ITEM_LIST - | CSS_KEYFRAMES_SELECTOR_LIST - | CSS_PAGE_SELECTOR_LIST - | CSS_PAGE_SELECTOR_PSEUDO_LIST - | CSS_PAGE_AT_RULE_ITEM_LIST - | CSS_LAYER_REFERENCE_LIST - | CSS_LAYER_NAME_LIST - | CSS_DOCUMENT_MATCHER_LIST - | CSS_VALUE_AT_RULE_PROPERTY_LIST - | CSS_VALUE_AT_RULE_IMPORT_SPECIFIER_LIST - | CSS_UNKNOWN_AT_RULE_COMPONENT_LIST => true, - _ => false, - } + | CSS_SELECTOR_LIST + | CSS_DECLARATION_OR_RULE_LIST + | CSS_DECLARATION_OR_AT_RULE_LIST + | CSS_ATTRIBUTE_LIST + | CSS_DECLARATION_LIST + | CSS_COMPONENT_VALUE_LIST + | CSS_GENERIC_COMPONENT_VALUE_LIST + | CSS_COMPOSES_CLASS_LIST + | CSS_PARAMETER_LIST + | CSS_ANY_SELECTOR_LIST + | CSS_SUB_SELECTOR_LIST + | CSS_NESTED_SELECTOR_LIST + | CSS_PSEUDO_CLASS_FUNCTION_SELECTOR_LIST + | CSS_PSEUDO_CLASS_FUNCTION_COMPOUND_SELECTOR_LIST + | CSS_COMPOUND_SELECTOR_LIST + | CSS_PSEUDO_CLASS_FUNCTION_RELATIVE_SELECTOR_LIST + | CSS_RELATIVE_SELECTOR_LIST + | CSS_PSEUDO_CLASS_FUNCTION_VALUE_LIST + | CSS_PSEUDO_VALUE_LIST + | CSS_URL_MODIFIER_LIST + | CSS_BRACKETED_VALUE_LIST + | CSS_FONT_FAMILY_NAME_LIST + | CSS_CUSTOM_IDENTIFIER_LIST + | CSS_FONT_FEATURE_VALUES_ITEM_LIST + | CSS_MEDIA_QUERY_LIST + | CSS_KEYFRAMES_ITEM_LIST + | CSS_KEYFRAMES_SELECTOR_LIST + | CSS_PAGE_SELECTOR_LIST + | CSS_PAGE_SELECTOR_PSEUDO_LIST + | CSS_PAGE_AT_RULE_ITEM_LIST + | CSS_LAYER_REFERENCE_LIST + | CSS_LAYER_NAME_LIST + | CSS_DOCUMENT_MATCHER_LIST + | CSS_VALUE_AT_RULE_PROPERTY_LIST + | CSS_VALUE_AT_RULE_IMPORT_SPECIFIER_LIST + | CSS_UNKNOWN_AT_RULE_COMPONENT_LIST + ) } pub fn from_keyword(ident: &str) -> Option { let kw = match ident { @@ -730,6 +770,8 @@ impl CssSyntaxKind { "value" => VALUE_KW, "as" => AS_KW, "composes" => COMPOSES_KW, + "position-try" => POSITION_TRY_KW, + "view-transition" => VIEW_TRANSITION_KW, "font-face" => FONT_FACE_KW, _ => return None, }; @@ -955,6 +997,8 @@ impl CssSyntaxKind { VALUE_KW => "value", AS_KW => "as", COMPOSES_KW => "composes", + POSITION_TRY_KW => "position-try", + VIEW_TRANSITION_KW => "view-transition", FONT_FACE_KW => "font-face", CSS_STRING_LITERAL => "string literal", _ => return None, @@ -964,4 +1008,4 @@ impl CssSyntaxKind { } #[doc = r" Utility macro for creating a SyntaxKind through simple macro syntax"] #[macro_export] -macro_rules ! T { [;] => { $ crate :: CssSyntaxKind :: SEMICOLON } ; [,] => { $ crate :: CssSyntaxKind :: COMMA } ; ['('] => { $ crate :: CssSyntaxKind :: L_PAREN } ; [')'] => { $ crate :: CssSyntaxKind :: R_PAREN } ; ['{'] => { $ crate :: CssSyntaxKind :: L_CURLY } ; ['}'] => { $ crate :: CssSyntaxKind :: R_CURLY } ; ['['] => { $ crate :: CssSyntaxKind :: L_BRACK } ; [']'] => { $ crate :: CssSyntaxKind :: R_BRACK } ; [<] => { $ crate :: CssSyntaxKind :: L_ANGLE } ; [>] => { $ crate :: CssSyntaxKind :: R_ANGLE } ; [~] => { $ crate :: CssSyntaxKind :: TILDE } ; [#] => { $ crate :: CssSyntaxKind :: HASH } ; [&] => { $ crate :: CssSyntaxKind :: AMP } ; [|] => { $ crate :: CssSyntaxKind :: PIPE } ; [||] => { $ crate :: CssSyntaxKind :: PIPE2 } ; [+] => { $ crate :: CssSyntaxKind :: PLUS } ; [*] => { $ crate :: CssSyntaxKind :: STAR } ; [/] => { $ crate :: CssSyntaxKind :: SLASH } ; [^] => { $ crate :: CssSyntaxKind :: CARET } ; [%] => { $ crate :: CssSyntaxKind :: PERCENT } ; [.] => { $ crate :: CssSyntaxKind :: DOT } ; [:] => { $ crate :: CssSyntaxKind :: COLON } ; [::] => { $ crate :: CssSyntaxKind :: COLON2 } ; [=] => { $ crate :: CssSyntaxKind :: EQ } ; [!] => { $ crate :: CssSyntaxKind :: BANG } ; [!=] => { $ crate :: CssSyntaxKind :: NEQ } ; [-] => { $ crate :: CssSyntaxKind :: MINUS } ; [<=] => { $ crate :: CssSyntaxKind :: LTEQ } ; [>=] => { $ crate :: CssSyntaxKind :: GTEQ } ; [+=] => { $ crate :: CssSyntaxKind :: PLUSEQ } ; [|=] => { $ crate :: CssSyntaxKind :: PIPEEQ } ; [&=] => { $ crate :: CssSyntaxKind :: AMPEQ } ; [^=] => { $ crate :: CssSyntaxKind :: CARETEQ } ; [/=] => { $ crate :: CssSyntaxKind :: SLASHEQ } ; [*=] => { $ crate :: CssSyntaxKind :: STAREQ } ; [%=] => { $ crate :: CssSyntaxKind :: PERCENTEQ } ; [@] => { $ crate :: CssSyntaxKind :: AT } ; ["$="] => { $ crate :: CssSyntaxKind :: DOLLAR_EQ } ; [~=] => { $ crate :: CssSyntaxKind :: TILDE_EQ } ; [-->] => { $ crate :: CssSyntaxKind :: CDC } ; [] => { $ crate :: CssSyntaxKind :: CDC } ; [