Skip to content

Commit 40a6a8c

Browse files
autofix-ci[bot]camc314
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 3e31bcb commit 40a6a8c

File tree

1 file changed

+22
-29
lines changed

1 file changed

+22
-29
lines changed

Cargo.toml

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ rust-version = "1.86.0"
2222
absolute_paths_not_starting_with_crate = "warn"
2323
non_ascii_idents = "warn"
2424
unit-bindings = "warn"
25-
unexpected_cfgs = { level = "warn", check-cfg = [
26-
'cfg(coverage)',
27-
'cfg(coverage_nightly)',
28-
] }
25+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_nightly)'] }
2926
tail_expr_drop_order = "warn"
3027
unsafe_op_in_unsafe_fn = "warn"
3128
unused_unsafe = "warn"
@@ -36,14 +33,14 @@ all = { level = "warn", priority = -1 }
3633
dbg_macro = "warn"
3734
todo = "warn"
3835
unimplemented = "warn"
39-
print_stdout = "warn" # Must be opt-in
40-
print_stderr = "warn" # Must be opt-in
36+
print_stdout = "warn" # Must be opt-in
37+
print_stderr = "warn" # Must be opt-in
4138
allow_attributes = "warn"
4239
# I like the explicitness of this rule as it removes confusion around `clone`.
4340
# This increases readability, avoids `clone` mindlessly and heap allocating by accident.
4441
clone_on_ref_ptr = "warn"
4542
# These two are mutually exclusive, I like `mod.rs` files for better fuzzy searches on module entries.
46-
self_named_module_files = "warn" # "-Wclippy::mod_module_files"
43+
self_named_module_files = "warn" # "-Wclippy::mod_module_files"
4744
empty_drop = "warn"
4845
empty_structs_with_brackets = "warn"
4946
exit = "warn"
@@ -102,9 +99,9 @@ redundant_clone = "warn"
10299
# cargo
103100
cargo = { level = "warn", priority = -1 }
104101
multiple_crate_versions = "allow"
105-
cargo_common_metadata = "allow" # FIXME
106-
doc_lazy_continuation = "allow" # FIXME
107-
ignore_without_reason = "allow" # FIXME
102+
cargo_common_metadata = "allow" # FIXME
103+
doc_lazy_continuation = "allow" # FIXME
104+
ignore_without_reason = "allow" # FIXME
108105

109106
[workspace.dependencies]
110107
# publish = true
@@ -123,9 +120,7 @@ oxc_isolated_declarations = { version = "0.75.0", path = "crates/oxc_isolated_de
123120
oxc_mangler = { version = "0.75.0", path = "crates/oxc_mangler" }
124121
oxc_minifier = { version = "0.75.0", path = "crates/oxc_minifier" }
125122
oxc_napi = { version = "0.75.0", path = "crates/oxc_napi" }
126-
oxc_parser = { version = "0.75.0", path = "crates/oxc_parser", features = [
127-
"regular_expression",
128-
] }
123+
oxc_parser = { version = "0.75.0", path = "crates/oxc_parser", features = ["regular_expression"] }
129124
oxc_parser_napi = { version = "0.75.0", path = "napi/parser" }
130125
oxc_regular_expression = { version = "0.75.0", path = "crates/oxc_regular_expression" }
131126
oxc_semantic = { version = "0.75.0", path = "crates/oxc_semantic" }
@@ -205,9 +200,7 @@ lazy_static = "1.5.0"
205200
log = "0.4.27"
206201
markdown = "1.0.0"
207202
memchr = "2.7.4"
208-
miette = { package = "oxc-miette", version = "2.3.0", features = [
209-
"fancy-no-syscall",
210-
] }
203+
miette = { package = "oxc-miette", version = "2.3.0", features = ["fancy-no-syscall"] }
211204
mimalloc-safe = "0.1.53"
212205
nonmax = "0.5.5"
213206
num-bigint = "0.4.6"
@@ -243,11 +236,11 @@ walkdir = "2.5.0"
243236

244237
[workspace.metadata.cargo-shear]
245238
ignored = [
246-
"napi",
247-
"oxc_transform_napi",
248-
"oxc_parser_napi",
249-
"prettyplease",
250-
"lazy_static",
239+
"napi",
240+
"oxc_transform_napi",
241+
"oxc_parser_napi",
242+
"prettyplease",
243+
"lazy_static",
251244
]
252245

253246
[profile.dev]
@@ -279,24 +272,24 @@ opt-level = 3
279272
lto = "fat"
280273
codegen-units = 1
281274
strip = "symbols" # Set to `false` for debug information
282-
debug = false # Set to `true` for debug information
283-
panic = "abort" # Let it crash and force ourselves to write safe Rust
275+
debug = false # Set to `true` for debug information
276+
panic = "abort" # Let it crash and force ourselves to write safe Rust
284277

285278
# Profile used for release mode, but with debugging information for profiling
286279
# and debugging. Use `cargo build --profile=release-with-debug` to build with this profile.
287280
[profile.release-with-debug]
288281
inherits = "release"
289-
strip = false # Keep debug information in binary
290-
debug = true # Include maximum amount of debug information
282+
strip = false # Keep debug information in binary
283+
debug = true # Include maximum amount of debug information
291284

292285
# Profile for `cargo coverage`
293286
[profile.coverage]
294287
inherits = "release"
295-
opt-level = 2 # Compile faster
296-
codegen-units = 256 # Compile faster
297-
lto = "thin" # Faster compile time with thin LTO
288+
opt-level = 2 # Compile faster
289+
codegen-units = 256 # Compile faster
290+
lto = "thin" # Faster compile time with thin LTO
298291
debug-assertions = true # Make sure `debug_assert!`s pass
299-
overflow-checks = true # Catch arithmetic overflow errors
292+
overflow-checks = true # Catch arithmetic overflow errors
300293

301294
# Profile for linting with release mode-like settings.
302295
# Catches lint errors which only appear in release mode.

0 commit comments

Comments
 (0)