summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2017-08-02 17:12:34 -0400
committerkyren <kerriganw@gmail.com>2017-08-02 17:12:34 -0400
commitffc9b032e79eda6875d078f42aef787dbbc4652d (patch)
tree3c1f3338fdad5589f240e512e0d928d692b57529 /src/lib.rs
parentcac41418710fcb5ed1d7af7b5ca75b77e7699199 (diff)
downloadmlua-ffc9b032e79eda6875d078f42aef787dbbc4652d.zip
Riiight, doctests don't even *show* warnings by default, this flag is important.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8ee1fdf..d2d7de2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,6 @@
+// Deny warnings inside doc tests / examples
+#![doc(test(attr(deny(warnings))))]
+
extern crate libc;
pub mod ffi;