Skip to content

Commit 2fcb125

Browse files
committed
style: Make clippy happy
1 parent 99f8cd4 commit 2fcb125

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/snapbox/src/dir/diff.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
use crate::filter::{Filter as _, FilterNewlines, FilterPaths, NormalizeToExpected};
33

44
#[derive(Clone, Debug, PartialEq, Eq)]
5+
#[allow(clippy::large_enum_variant)]
56
pub enum PathDiff {
67
Failure(crate::assert::Error),
78
TypeMismatch {

crates/trycmd/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,8 @@ escargot = { version = "0.5.13", optional = true }
5959
schemars = { version = "1.0.0", features = ["preserve_order"], optional = true }
6060
serde_json = { version = "1.0", optional = true }
6161

62+
[target.'cfg(any())'.dependencies]
63+
syn = "2.0.104" # HACK: bad minimal dep in schemars
64+
6265
[lints]
6366
workspace = true

crates/trycmd/src/runner.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@ impl std::fmt::Display for Filesystem {
869869
}
870870

871871
#[derive(Clone, Debug, PartialEq, Eq)]
872+
#[allow(clippy::large_enum_variant)]
872873
enum FileStatus {
873874
Ok {
874875
expected_path: std::path::PathBuf,

0 commit comments

Comments
 (0)