-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid warnings from bare trait objects
Since we support Rust 1.18 but modern Rust versions have a warning about bare trait objects, we go ahead and allow them in the code of `src/lib.rs` & `snafu-derive/src/lib.rs`. We also have to allow unknown lints because Rust 1.18 doesn't know about the lint we are allowing. We can use `dyn` in the documentation and tests because those are only executed in modern Rust versions.
- Loading branch information
1 parent
d311b5b
commit fe2f81b
Showing
5 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![allow(unknown_lints, bare_trait_objects)] | ||
#![deny(missing_docs)] | ||
|
||
//! # SNAFU | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters