From c25800458c3eabfe84731a1037b8c1927bf33971 Mon Sep 17 00:00:00 2001 From: Andrew Chambers Date: Tue, 1 Jun 2021 00:45:14 +1200 Subject: [PATCH] Minor refactor, bump version. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/client.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a4cf11f9..2b9e11ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,7 +67,7 @@ dependencies = [ [[package]] name = "bupstash" -version = "0.9.0" +version = "0.9.1" dependencies = [ "anyhow", "atty", diff --git a/Cargo.toml b/Cargo.toml index 146cb42f..d16ee761 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bupstash" -version = "0.9.0" +version = "0.9.1" authors = ["Andrew Chambers "] edition = "2018" license = "MIT" diff --git a/src/client.rs b/src/client.rs index 8966f3a7..3af7415a 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1279,7 +1279,7 @@ fn receive_htree( Ok(()) } -fn write_index_as_tarball( +fn write_indexed_data_as_tarball( read_data: &mut dyn FnMut() -> Result>, anyhow::Error>, index: &index::CompressedIndex, out: &mut dyn std::io::Write, @@ -1402,7 +1402,7 @@ fn receive_indexed_htree_as_tarball( Ok(None) }; - write_index_as_tarball(&mut read_data, index, out) + write_indexed_data_as_tarball(&mut read_data, index, out) } fn receive_partial_htree( @@ -1534,7 +1534,7 @@ fn receive_partial_htree( }; if pick.is_subtar { - write_index_as_tarball(&mut read_data, &pick.index, out)?; + write_indexed_data_as_tarball(&mut read_data, &pick.index, out)?; } else { while let Some(data) = read_data()? { out.write_all(&data)?;