diff --git a/.editorconfig b/.editorconfig index 69ab656..5065ea6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,19 +3,9 @@ root = true [*] charset = utf-8 end_of_line = lf -indent_size = 4 indent_style = space insert_final_newline = true trim_trailing_whitespace = true -[*.md] -indent_size = 2 - [*.{yml,yaml}] indent_size = 2 - -[LICENSE-{APACHE,MIT}] -indent_size = unset - -[*.lock] -indent_size = unset diff --git a/Cargo.toml b/Cargo.toml index 3d152f3..a8da81d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,6 +28,7 @@ unused_qualifications = "warn" [lints.clippy] # Restrictions +disallowed_methods = "forbid" panic_in_result_fn = "warn" todo = "warn" unwrap_used = "warn" diff --git a/clippy.toml b/clippy.toml index c647029..2c92b5d 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,3 +1,10 @@ allow-mixed-uninlined-format-args = false allow-unwrap-in-tests = true avoid-breaking-exported-api = false + +disallowed-methods = [ + "alloc::boxed::Box::leak", + "alloc::vec::Vec::leak", + "std::boxed::Box::leak", + "std::vec::Vec::leak", +]