Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4047d45

Browse files
authoredApr 1, 2024··
chore(deps): update rust crate insta to v1.38.0 (#10701)
1 parent 20d69ea commit 4047d45

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed
 

‎Cargo.lock

+2-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/ruff/src/version.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub(crate) fn version() -> VersionInfo {
7070

7171
#[cfg(test)]
7272
mod tests {
73-
use insta::{assert_display_snapshot, assert_json_snapshot};
73+
use insta::{assert_json_snapshot, assert_snapshot};
7474

7575
use super::{CommitInfo, VersionInfo};
7676

@@ -80,7 +80,7 @@ mod tests {
8080
version: "0.0.0".to_string(),
8181
commit_info: None,
8282
};
83-
assert_display_snapshot!(version);
83+
assert_snapshot!(version);
8484
}
8585

8686
#[test]
@@ -95,7 +95,7 @@ mod tests {
9595
commits_since_last_tag: 0,
9696
}),
9797
};
98-
assert_display_snapshot!(version);
98+
assert_snapshot!(version);
9999
}
100100

101101
#[test]
@@ -110,7 +110,7 @@ mod tests {
110110
commits_since_last_tag: 24,
111111
}),
112112
};
113-
assert_display_snapshot!(version);
113+
assert_snapshot!(version);
114114
}
115115

116116
#[test]

‎crates/ruff_python_resolver/src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ mod tests {
132132
($value: ident) => {{
133133
// The debug representation for the backslash are two backslashes (escaping)
134134
let $value = std::format!("{:#?}", $value).replace("\\\\", "/");
135-
// `insta::assert_snapshot` uses the debug representation of the string, which would
136-
// be a single line containing `\n`
137-
insta::assert_display_snapshot!($value);
135+
insta::assert_snapshot!($value);
138136
}};
139137
}
140138

0 commit comments

Comments
 (0)
Please sign in to comment.