Skip to content

Commit

Permalink
style: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 1, 2024
1 parent 6ec0c8c commit a90e29c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions examples/failure.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![allow(clippy::unwrap_used)]

#[allow(clippy::wildcard_imports)] // false positive
use assert_fs::prelude::*;

fn main() {
Expand Down
8 changes: 4 additions & 4 deletions src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ where
}

/// Keep `predicates` concrete Predicates out of our public API.
/// [predicates_core::Predicate] used by [`IntoPathPredicate`] for bytes.
/// [`predicates_core::Predicate`] used by [`IntoPathPredicate`] for bytes.
///
/// # Example
///
Expand Down Expand Up @@ -271,7 +271,7 @@ impl IntoPathPredicate<BytesContentPathPredicate> for &'static [u8] {
}

/// Keep `predicates` concrete Predicates out of our public API.
/// [predicates_core::Predicate] used by `IntoPathPredicate` for `str`.
/// [`predicates_core::Predicate`] used by `IntoPathPredicate` for `str`.
///
/// # Example
///
Expand Down Expand Up @@ -362,7 +362,7 @@ impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s String {
}

/// Keep `predicates` concrete Predicates out of our public API.
/// [predicates_core::Predicate] used by `IntoPathPredicate` for `str` predicates.
/// [`predicates_core::Predicate`] used by `IntoPathPredicate` for `str` predicates.
///
/// # Example
///
Expand Down Expand Up @@ -461,7 +461,7 @@ mod test {
fn convert_path<I, P>(pred: I) -> P
where
I: IntoPathPredicate<P>,
P: predicates_core::Predicate<path::Path>,
P: Predicate<path::Path>,
{
pred.into_path()
}
Expand Down
4 changes: 3 additions & 1 deletion src/fixture/dir.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use std::path;

use super::errors::*;
use super::errors::FixtureError;
use super::errors::FixtureKind;
use super::errors::ResultChainExt;

/// A directory in the filesystem that is automatically deleted when
/// it goes out of scope.
Expand Down
4 changes: 3 additions & 1 deletion src/fixture/file.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::ffi;
use std::path;

use super::errors::*;
use super::errors::FixtureError;
use super::errors::FixtureKind;
use super::errors::ResultChainExt;

/// A potential file in the filesystem that is automatically deleted when
/// it goes out of scope.
Expand Down
4 changes: 3 additions & 1 deletion src/fixture/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use std::fs;
use std::io::Write;
use std::path;

use super::errors::*;
use super::errors::FixtureError;
use super::errors::FixtureKind;
use super::errors::ResultChainExt;
use super::ChildPath;
use super::NamedTempFile;
use super::TempDir;
Expand Down

0 comments on commit a90e29c

Please sign in to comment.