From cd3ffc6114661040e1989016588990ba8d662504 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 16 Dec 2018 12:28:26 +0100 Subject: 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 --- src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.1