Skip to content

Commit

Permalink
Use [lints] in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 21, 2023
1 parent 1b9bde4 commit 97d555f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ tracing = "0.1"

[dev-dependencies]
kiss3d = "0.35"

[lints]
workspace = true

[workspace.lints.rust]
missing_debug_implementations = "warn"
# missing_docs = "warn" # TODO: This somehow warns examples.
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
unreachable_pub = "warn"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#![doc = include_str!("../README.md")]
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms)]
#![warn(missing_docs)]

use kdtree::distance::squared_euclidean;
use num_traits::float::Float;
Expand Down

0 comments on commit 97d555f

Please sign in to comment.