Skip to content

Commit f781958

Browse files
max-sixtyClaude
andauthored
Rename process_snapshots function to review_snapshots for clarity (#761)
Co-authored-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 93b12c6 commit f781958

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cargo-insta/src/cli.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ fn load_snapshot_containers<'a>(
534534
Ok((snapshot_containers, roots))
535535
}
536536

537-
fn process_snapshots(
537+
/// Processes snapshot files for reviewing, accepting, or rejecting.
538+
fn review_snapshots(
538539
quiet: bool,
539540
snapshot_filter: Option<&[String]>,
540541
loc: &LocationInfo<'_>,
@@ -812,7 +813,7 @@ fn test_run(mut cmd: TestCommand, color: ColorWhen) -> Result<(), Box<dyn Error>
812813
}
813814

814815
if cmd.review || cmd.accept {
815-
process_snapshots(
816+
review_snapshots(
816817
false,
817818
None,
818819
&loc,
@@ -1329,7 +1330,7 @@ pub(crate) fn run() -> Result<(), Box<dyn Error>> {
13291330
handle_color(opts.color);
13301331
match opts.command {
13311332
Command::Review(ref cmd) | Command::Accept(ref cmd) | Command::Reject(ref cmd) => {
1332-
process_snapshots(
1333+
review_snapshots(
13331334
cmd.quiet,
13341335
cmd.snapshot_filter.as_deref(),
13351336
&handle_target_args(&cmd.target_args, &[])?,

0 commit comments

Comments
 (0)