diff options
| author | Eskil Queseth <eskilq@kth.se> | 2021-06-13 22:17:59 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2021-06-13 22:17:59 +0200 |
| commit | 40ec0eeee3bcbfad7d16c93e4572b248c4f0dbdd (patch) | |
| tree | 1e625ec8d75c9687f8842b11e3e1e4e9b863fa0c | |
| parent | 96ac62de9f93bbd1530456369ecdb57b177564cb (diff) | |
| download | mum-40ec0eeee3bcbfad7d16c93e4572b248c4f0dbdd.tar.gz | |
lint mumlib
| -rw-r--r-- | mumlib/src/lib.rs | 15 | ||||
| -rw-r--r-- | mumlib/src/state.rs | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/mumlib/src/lib.rs b/mumlib/src/lib.rs index 9b7d686..95ae274 100644 --- a/mumlib/src/lib.rs +++ b/mumlib/src/lib.rs @@ -1,3 +1,18 @@ +#![warn(elided_lifetimes_in_paths)] +#![warn(meta_variable_misuse)] +#![warn(missing_debug_implementations)] +#![warn(single_use_lifetimes)] +#![warn(unreachable_pub)] +#![warn(unused_crate_dependencies)] +#![warn(unused_import_braces)] +#![warn(unused_lifetimes)] +#![warn(unused_qualifications)] +#![deny(macro_use_extern_crate)] +#![deny(missing_abi)] +#![deny(future_incompatible)] +#![forbid(unsafe_code)] +#![forbid(non_ascii_idents)] + pub mod command; pub mod config; pub mod error; diff --git a/mumlib/src/state.rs b/mumlib/src/state.rs index 6fad332..5385380 100644 --- a/mumlib/src/state.rs +++ b/mumlib/src/state.rs @@ -46,6 +46,7 @@ impl Channel { } } +#[derive(Debug)] pub struct Iter<'a> { me: Option<&'a Channel>, channel: Option<usize>, @@ -76,6 +77,7 @@ impl<'a> Iterator for Iter<'a> { } } +#[derive(Debug)] pub struct UsersIter<'a> { channel: Option<usize>, channels: Vec<UsersIter<'a>>, |
