Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tarka committed Sep 20, 2024
1 parent 1d50eb8 commit 13f05f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_no_perms = []
test_run_expensive = []

[dependencies]
anyhow = "1.0.88"
anyhow = "1.0.89"
crossbeam-channel = "0.5.13"
clap = { version = "4.5.17", features = ["derive"] }
glob = "0.3.1"
Expand Down
2 changes: 1 addition & 1 deletion libxcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ parblock = []
use_linux = ["libfs/use_linux"]

[dependencies]
anyhow = "1.0.88"
anyhow = "1.0.89"
blocking-threadpool = "1.0.1"
cfg-if = "1.0.0"
crossbeam-channel = "0.5.13"
Expand Down
2 changes: 1 addition & 1 deletion libxcp/src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl CopyHandle {

/// Copy len bytes from wherever the descriptor cursors are set.
fn copy_bytes(&self, len: u64, updates: &Arc<dyn StatusUpdater>) -> Result<u64> {
let mut written = 0u64;
let mut written = 0;
while written < len {
let bytes_to_copy = cmp::min(len - written, self.config.block_size);
let bytes = copy_file_bytes(&self.infd, &self.outfd, bytes_to_copy)? as u64;
Expand Down

0 comments on commit 13f05f8

Please sign in to comment.