Skip to content

Commit

Permalink
Fix missing_docs lints with the latest nightly (#607)
Browse files Browse the repository at this point in the history
Previously nightly compilers would ignore missing_docs in integration
tests, but no more.
  • Loading branch information
asomers authored Sep 12, 2024
1 parent 6c5276e commit 5394a9b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mockall/tests/mock_docs.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// vim: tw=80
//! mock! should allow doc comments in all reasonable positions. This test
//! ensures that the code will compile. mockall_derive has a unit test to
//! ensure that the doc comments are correctly placed.
#![deny(missing_docs)]
#![deny(warnings)]

use mockall::*;

// mock! should allow doc comments in all reasonable positions. This test
// ensures that the code will compile. mockall_derive has a unit test to ensure
// that the doc comments are correctly placed.

/// Docs for a real (not-mock) trait
pub trait Tr {
/// Some method
fn bar(&self);
}

Expand Down

0 comments on commit 5394a9b

Please sign in to comment.