diff --git a/src/lib.rs b/src/lib.rs
index 9e270dba..e17802c4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -58,6 +58,7 @@
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![no_std]
+#![warn(rust_2018_idioms)]
// Style.
#![allow(clippy::collapsible_if)]
#![allow(clippy::comparison_chain)]
diff --git a/src/read/any.rs b/src/read/any.rs
index 06af4abb..342ad75f 100644
--- a/src/read/any.rs
+++ b/src/read/any.rs
@@ -473,7 +473,7 @@ where
}
#[inline]
- fn pdb_info(&self) -> Result