Skip to content

Commit 49e3d95

Browse files
l-constjacobgkau
authored andcommitted
fix example/cargo test/ CI
1 parent 183f59e commit 49e3d95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/copy.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ async fn main() -> Result<(), Box<dyn Error>> {
88
.on_progress(|op, progress| {
99
println!("{:?}: {:?}", op.to, progress);
1010
})
11-
.on_replace(|op| {
11+
.on_replace(|op, conflicting_count| {
1212
Box::pin(async move {
13-
println!("replace {:?}? (y/N)", op.to);
13+
println!(
14+
"replace {:?}? (y/N) [conflicting: {}]",
15+
op.to, conflicting_count
16+
);
1417
let mut line = String::new();
1518
match io::stdin().read_line(&mut line) {
1619
Ok(_) => {

0 commit comments

Comments
 (0)