cfgs 1 tab -> 4 spaces

This commit is contained in:
hinto.janai 2024-08-20 15:42:35 -04:00
parent c0950f3ba5
commit 76f479ea68
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
5 changed files with 223 additions and 223 deletions

View file

@ -4,37 +4,37 @@
// Forbid lints. // Forbid lints.
// Our code, and code generated (e.g macros) cannot overrule these. // Our code, and code generated (e.g macros) cannot overrule these.
#![forbid( #![forbid(
// `unsafe` is allowed but it _must_ be // `unsafe` is allowed but it _must_ be
// commented with `SAFETY: reason`. // commented with `SAFETY: reason`.
clippy::undocumented_unsafe_blocks, clippy::undocumented_unsafe_blocks,
// Never. // Never.
unused_unsafe, unused_unsafe,
redundant_semicolons, redundant_semicolons,
unused_allocation, unused_allocation,
coherence_leak_check, coherence_leak_check,
while_true, while_true,
// Maybe can be put into `#[deny]`. // Maybe can be put into `#[deny]`.
unconditional_recursion, unconditional_recursion,
for_loops_over_fallibles, for_loops_over_fallibles,
unused_braces, unused_braces,
unused_labels, unused_labels,
keyword_idents, keyword_idents,
non_ascii_idents, non_ascii_idents,
variant_size_differences, variant_size_differences,
single_use_lifetimes, single_use_lifetimes,
// Probably can be put into `#[deny]`. // Probably can be put into `#[deny]`.
future_incompatible, future_incompatible,
let_underscore, let_underscore,
break_with_label_and_loop, break_with_label_and_loop,
duplicate_macro_attributes, duplicate_macro_attributes,
exported_private_dependencies, exported_private_dependencies,
large_assignments, large_assignments,
overlapping_range_endpoints, overlapping_range_endpoints,
semicolon_in_expressions_from_macros, semicolon_in_expressions_from_macros,
noop_method_call, noop_method_call,
)] )]
// Deny lints. // Deny lints.
// Some of these are `#[allow]`'ed on a per-case basis. // Some of these are `#[allow]`'ed on a per-case basis.
@ -57,30 +57,30 @@
unreachable_pub unreachable_pub
)] )]
#![allow( #![allow(
// FIXME: this lint affects crates outside of // FIXME: this lint affects crates outside of
// `database/` for some reason, allow for now. // `database/` for some reason, allow for now.
clippy::cargo_common_metadata, clippy::cargo_common_metadata,
// FIXME: adding `#[must_use]` onto everything // FIXME: adding `#[must_use]` onto everything
// might just be more annoying than useful... // might just be more annoying than useful...
// although it is sometimes nice. // although it is sometimes nice.
clippy::must_use_candidate, clippy::must_use_candidate,
// FIXME: good lint but too many false positives // FIXME: good lint but too many false positives
// with our `Env` + `RwLock` setup. // with our `Env` + `RwLock` setup.
clippy::significant_drop_tightening, clippy::significant_drop_tightening,
// FIXME: good lint but is less clear in most cases. // FIXME: good lint but is less clear in most cases.
clippy::items_after_statements, clippy::items_after_statements,
// TODO // TODO
rustdoc::bare_urls, rustdoc::bare_urls,
clippy::multiple_crate_versions, clippy::multiple_crate_versions,
clippy::module_name_repetitions, clippy::module_name_repetitions,
clippy::module_inception, clippy::module_inception,
clippy::redundant_pub_crate, clippy::redundant_pub_crate,
clippy::option_if_let_else, clippy::option_if_let_else,
)] )]
// Allow some lints in tests. // Allow some lints in tests.
#![cfg_attr( #![cfg_attr(

View file

@ -3,38 +3,38 @@
// Forbid lints. // Forbid lints.
// Our code, and code generated (e.g macros) cannot overrule these. // Our code, and code generated (e.g macros) cannot overrule these.
#![forbid( #![forbid(
// `unsafe` is allowed but it _must_ be // `unsafe` is allowed but it _must_ be
// commented with `SAFETY: reason`. // commented with `SAFETY: reason`.
clippy::undocumented_unsafe_blocks, clippy::undocumented_unsafe_blocks,
// Never. // Never.
unused_unsafe, unused_unsafe,
redundant_semicolons, redundant_semicolons,
unused_allocation, unused_allocation,
coherence_leak_check, coherence_leak_check,
while_true, while_true,
// Maybe can be put into `#[deny]`. // Maybe can be put into `#[deny]`.
unconditional_recursion, unconditional_recursion,
for_loops_over_fallibles, for_loops_over_fallibles,
unused_braces, unused_braces,
unused_labels, unused_labels,
keyword_idents, keyword_idents,
non_ascii_idents, non_ascii_idents,
variant_size_differences, variant_size_differences,
single_use_lifetimes, single_use_lifetimes,
// Probably can be put into `#[deny]`. // Probably can be put into `#[deny]`.
future_incompatible, future_incompatible,
let_underscore, let_underscore,
break_with_label_and_loop, break_with_label_and_loop,
duplicate_macro_attributes, duplicate_macro_attributes,
exported_private_dependencies, exported_private_dependencies,
large_assignments, large_assignments,
overlapping_range_endpoints, overlapping_range_endpoints,
semicolon_in_expressions_from_macros, semicolon_in_expressions_from_macros,
noop_method_call, noop_method_call,
unreachable_pub, unreachable_pub,
)] )]
// Deny lints. // Deny lints.
// Some of these are `#[allow]`'ed on a per-case basis. // Some of these are `#[allow]`'ed on a per-case basis.
@ -56,26 +56,26 @@
nonstandard_style nonstandard_style
)] )]
#![allow( #![allow(
// FIXME: this lint affects crates outside of // FIXME: this lint affects crates outside of
// `database/` for some reason, allow for now. // `database/` for some reason, allow for now.
clippy::cargo_common_metadata, clippy::cargo_common_metadata,
// FIXME: adding `#[must_use]` onto everything // FIXME: adding `#[must_use]` onto everything
// might just be more annoying than useful... // might just be more annoying than useful...
// although it is sometimes nice. // although it is sometimes nice.
clippy::must_use_candidate, clippy::must_use_candidate,
// FIXME: good lint but too many false positives // FIXME: good lint but too many false positives
// with our `Env` + `RwLock` setup. // with our `Env` + `RwLock` setup.
clippy::significant_drop_tightening, clippy::significant_drop_tightening,
// FIXME: good lint but is less clear in most cases. // FIXME: good lint but is less clear in most cases.
clippy::items_after_statements, clippy::items_after_statements,
clippy::module_name_repetitions, clippy::module_name_repetitions,
clippy::module_inception, clippy::module_inception,
clippy::redundant_pub_crate, clippy::redundant_pub_crate,
clippy::option_if_let_else, clippy::option_if_let_else,
)] )]
// Allow some lints in tests. // Allow some lints in tests.
#![cfg_attr( #![cfg_attr(

View file

@ -4,37 +4,37 @@
// Forbid lints. // Forbid lints.
// Our code, and code generated (e.g macros) cannot overrule these. // Our code, and code generated (e.g macros) cannot overrule these.
#![forbid( #![forbid(
// `unsafe` is allowed but it _must_ be // `unsafe` is allowed but it _must_ be
// commented with `SAFETY: reason`. // commented with `SAFETY: reason`.
clippy::undocumented_unsafe_blocks, clippy::undocumented_unsafe_blocks,
// Never. // Never.
unused_unsafe, unused_unsafe,
redundant_semicolons, redundant_semicolons,
unused_allocation, unused_allocation,
coherence_leak_check, coherence_leak_check,
while_true, while_true,
// Maybe can be put into `#[deny]`. // Maybe can be put into `#[deny]`.
unconditional_recursion, unconditional_recursion,
for_loops_over_fallibles, for_loops_over_fallibles,
unused_braces, unused_braces,
unused_labels, unused_labels,
keyword_idents, keyword_idents,
non_ascii_idents, non_ascii_idents,
variant_size_differences, variant_size_differences,
single_use_lifetimes, single_use_lifetimes,
// Probably can be put into `#[deny]`. // Probably can be put into `#[deny]`.
future_incompatible, future_incompatible,
let_underscore, let_underscore,
break_with_label_and_loop, break_with_label_and_loop,
duplicate_macro_attributes, duplicate_macro_attributes,
exported_private_dependencies, exported_private_dependencies,
large_assignments, large_assignments,
overlapping_range_endpoints, overlapping_range_endpoints,
semicolon_in_expressions_from_macros, semicolon_in_expressions_from_macros,
noop_method_call, noop_method_call,
)] )]
// Deny lints. // Deny lints.
// Some of these are `#[allow]`'ed on a per-case basis. // Some of these are `#[allow]`'ed on a per-case basis.
@ -57,27 +57,27 @@
unreachable_pub unreachable_pub
)] )]
#![allow( #![allow(
// FIXME: this lint affects crates outside of // FIXME: this lint affects crates outside of
// `database/` for some reason, allow for now. // `database/` for some reason, allow for now.
clippy::cargo_common_metadata, clippy::cargo_common_metadata,
// FIXME: adding `#[must_use]` onto everything // FIXME: adding `#[must_use]` onto everything
// might just be more annoying than useful... // might just be more annoying than useful...
// although it is sometimes nice. // although it is sometimes nice.
clippy::must_use_candidate, clippy::must_use_candidate,
// FIXME: good lint but too many false positives // FIXME: good lint but too many false positives
// with our `Env` + `RwLock` setup. // with our `Env` + `RwLock` setup.
clippy::significant_drop_tightening, clippy::significant_drop_tightening,
// FIXME: good lint but is less clear in most cases. // FIXME: good lint but is less clear in most cases.
clippy::items_after_statements, clippy::items_after_statements,
clippy::multiple_crate_versions, clippy::multiple_crate_versions,
clippy::module_name_repetitions, clippy::module_name_repetitions,
clippy::module_inception, clippy::module_inception,
clippy::redundant_pub_crate, clippy::redundant_pub_crate,
clippy::option_if_let_else, clippy::option_if_let_else,
)] )]
// Allow some lints in tests. // Allow some lints in tests.
#![cfg_attr( #![cfg_attr(

View file

@ -3,39 +3,39 @@
// Forbid lints. // Forbid lints.
// Our code, and code generated (e.g macros) cannot overrule these. // Our code, and code generated (e.g macros) cannot overrule these.
#![forbid( #![forbid(
// `unsafe` is allowed but it _must_ be // `unsafe` is allowed but it _must_ be
// commented with `SAFETY: reason`. // commented with `SAFETY: reason`.
clippy::undocumented_unsafe_blocks, clippy::undocumented_unsafe_blocks,
// Never. // Never.
unused_unsafe, unused_unsafe,
redundant_semicolons, redundant_semicolons,
unused_allocation, unused_allocation,
coherence_leak_check, coherence_leak_check,
while_true, while_true,
clippy::missing_docs_in_private_items, clippy::missing_docs_in_private_items,
// Maybe can be put into `#[deny]`. // Maybe can be put into `#[deny]`.
unconditional_recursion, unconditional_recursion,
for_loops_over_fallibles, for_loops_over_fallibles,
unused_braces, unused_braces,
unused_labels, unused_labels,
keyword_idents, keyword_idents,
non_ascii_idents, non_ascii_idents,
variant_size_differences, variant_size_differences,
single_use_lifetimes, single_use_lifetimes,
// Probably can be put into `#[deny]`. // Probably can be put into `#[deny]`.
future_incompatible, future_incompatible,
let_underscore, let_underscore,
break_with_label_and_loop, break_with_label_and_loop,
duplicate_macro_attributes, duplicate_macro_attributes,
exported_private_dependencies, exported_private_dependencies,
large_assignments, large_assignments,
overlapping_range_endpoints, overlapping_range_endpoints,
semicolon_in_expressions_from_macros, semicolon_in_expressions_from_macros,
noop_method_call, noop_method_call,
unreachable_pub, unreachable_pub,
)] )]
// Deny lints. // Deny lints.
// Some of these are `#[allow]`'ed on a per-case basis. // Some of these are `#[allow]`'ed on a per-case basis.
@ -58,26 +58,26 @@
nonstandard_style nonstandard_style
)] )]
#![allow( #![allow(
// FIXME: this lint affects crates outside of // FIXME: this lint affects crates outside of
// `database/` for some reason, allow for now. // `database/` for some reason, allow for now.
clippy::cargo_common_metadata, clippy::cargo_common_metadata,
// FIXME: adding `#[must_use]` onto everything // FIXME: adding `#[must_use]` onto everything
// might just be more annoying than useful... // might just be more annoying than useful...
// although it is sometimes nice. // although it is sometimes nice.
clippy::must_use_candidate, clippy::must_use_candidate,
// FIXME: good lint but too many false positives // FIXME: good lint but too many false positives
// with our `Env` + `RwLock` setup. // with our `Env` + `RwLock` setup.
clippy::significant_drop_tightening, clippy::significant_drop_tightening,
// FIXME: good lint but is less clear in most cases. // FIXME: good lint but is less clear in most cases.
clippy::items_after_statements, clippy::items_after_statements,
clippy::module_name_repetitions, clippy::module_name_repetitions,
clippy::module_inception, clippy::module_inception,
clippy::redundant_pub_crate, clippy::redundant_pub_crate,
clippy::option_if_let_else, clippy::option_if_let_else,
)] )]
// Allow some lints when running in debug mode. // Allow some lints when running in debug mode.
#![cfg_attr( #![cfg_attr(

View file

@ -3,39 +3,39 @@
// Forbid lints. // Forbid lints.
// Our code, and code generated (e.g macros) cannot overrule these. // Our code, and code generated (e.g macros) cannot overrule these.
#![forbid( #![forbid(
// `unsafe` is allowed but it _must_ be // `unsafe` is allowed but it _must_ be
// commented with `SAFETY: reason`. // commented with `SAFETY: reason`.
clippy::undocumented_unsafe_blocks, clippy::undocumented_unsafe_blocks,
// Never. // Never.
unused_unsafe, unused_unsafe,
redundant_semicolons, redundant_semicolons,
unused_allocation, unused_allocation,
coherence_leak_check, coherence_leak_check,
while_true, while_true,
clippy::missing_docs_in_private_items, clippy::missing_docs_in_private_items,
// Maybe can be put into `#[deny]`. // Maybe can be put into `#[deny]`.
unconditional_recursion, unconditional_recursion,
for_loops_over_fallibles, for_loops_over_fallibles,
unused_braces, unused_braces,
unused_labels, unused_labels,
keyword_idents, keyword_idents,
non_ascii_idents, non_ascii_idents,
variant_size_differences, variant_size_differences,
single_use_lifetimes, single_use_lifetimes,
// Probably can be put into `#[deny]`. // Probably can be put into `#[deny]`.
future_incompatible, future_incompatible,
let_underscore, let_underscore,
break_with_label_and_loop, break_with_label_and_loop,
duplicate_macro_attributes, duplicate_macro_attributes,
exported_private_dependencies, exported_private_dependencies,
large_assignments, large_assignments,
overlapping_range_endpoints, overlapping_range_endpoints,
semicolon_in_expressions_from_macros, semicolon_in_expressions_from_macros,
noop_method_call, noop_method_call,
unreachable_pub, unreachable_pub,
)] )]
// Deny lints. // Deny lints.
// Some of these are `#[allow]`'ed on a per-case basis. // Some of these are `#[allow]`'ed on a per-case basis.
@ -58,28 +58,28 @@
nonstandard_style nonstandard_style
)] )]
#![allow( #![allow(
// FIXME: this lint affects crates outside of // FIXME: this lint affects crates outside of
// `database/` for some reason, allow for now. // `database/` for some reason, allow for now.
clippy::cargo_common_metadata, clippy::cargo_common_metadata,
// FIXME: adding `#[must_use]` onto everything // FIXME: adding `#[must_use]` onto everything
// might just be more annoying than useful... // might just be more annoying than useful...
// although it is sometimes nice. // although it is sometimes nice.
clippy::must_use_candidate, clippy::must_use_candidate,
// FIXME: good lint but too many false positives // FIXME: good lint but too many false positives
// with our `Env` + `RwLock` setup. // with our `Env` + `RwLock` setup.
clippy::significant_drop_tightening, clippy::significant_drop_tightening,
// FIXME: good lint but is less clear in most cases. // FIXME: good lint but is less clear in most cases.
clippy::items_after_statements, clippy::items_after_statements,
clippy::module_name_repetitions, clippy::module_name_repetitions,
clippy::module_inception, clippy::module_inception,
clippy::redundant_pub_crate, clippy::redundant_pub_crate,
clippy::option_if_let_else, clippy::option_if_let_else,
// unused_crate_dependencies, // false-positive with `paste` // unused_crate_dependencies, // false-positive with `paste`
)] )]
// Allow some lints when running in debug mode. // Allow some lints when running in debug mode.
#![cfg_attr( #![cfg_attr(