aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:28:26 +0100
committerRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:28:26 +0100
commitcd3ffc6114661040e1989016588990ba8d662504 (patch)
tree851457469eff7e70ab777342eb3f25f46e2a6994 /src
parentd1a5e9f9547d804fb329dc41c5f5e0ce287e2215 (diff)
downloadnitrokey-rs-cd3ffc6114661040e1989016588990ba8d662504.tar.gz
nitrokey-rs-cd3ffc6114661040e1989016588990ba8d662504.tar.bz2
Enable additional compiler warnings
This patch enables the following compiler warnings: - missing_docs for public symbols without documentation - rust_2018_compatibility for Rust edition 2018 support - rust_2018_idioms for Rust edition 2018 support - unused for different types of unused code
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e70aa73..2466117 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -84,6 +84,13 @@
//! [`DeviceWrapper`]: enum.DeviceWrapper.html
//! [`User`]: struct.User.html
+#![warn(
+ missing_docs,
+ rust_2018_compatibility,
+ rust_2018_idioms,
+ unused,
+)]
+
extern crate libc;
extern crate nitrokey_sys;
extern crate rand;