Skip to content

Commit 9a53edf

Browse files
author
Marek Suchánek
committed
Configure lints and restrictions
1 parent d8645c9 commit 9a53edf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Enable additional clippy lints by default.
2+
#![warn(
3+
clippy::pedantic,
4+
clippy::unwrap_used,
5+
clippy::expect_used,
6+
clippy::clone_on_ref_ptr,
7+
clippy::todo
8+
)]
9+
// Forbid unsafe code in this program.
10+
#![forbid(unsafe_code)]
11+
112
mod access;
213
mod errors;
314
mod issue_model;

0 commit comments

Comments
 (0)