Skip to content

Commit bd5d3b7

Browse files
committed
fix: Resolve beta-build warnings
Fine line to walk, making beta/nightly happy with the warning but making stable happy where the warning doesn't exist.
1 parent 13f93ea commit bd5d3b7

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/bin/cobalt/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Deny warnings, except in dev mode
22
#![deny(warnings)]
3+
#![allow(unknown_lints)]
4+
#![allow(unused_doc_comment)] // error-chain 0.11 should fix this.
35
#![cfg_attr(feature="dev", warn(warnings))]
46

57
// stuff we want clippy to ignore

src/cobalt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub fn build(config: &Config) -> Result<()> {
152152
.collect();
153153

154154
trace!("Generating posts");
155-
for (i, mut post) in &mut posts.iter_mut().enumerate() {
155+
for (i, post) in &mut posts.iter_mut().enumerate() {
156156
trace!("Generating {}", post.url_path);
157157

158158
// posts are in reverse date order, so previous post is the next in the list (+1)

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Deny warnings, except in dev mode
22
#![deny(warnings)]
3-
// #![deny(missing_docs)]
3+
#![allow(unknown_lints)]
4+
#![allow(unused_doc_comment)] // error-chain 0.11 should fix this.
45
#![cfg_attr(feature="dev", warn(warnings))]
56

67
// Stuff we want clippy to ignore

0 commit comments

Comments
 (0)