From bd15e96dd98d8ae66dcebd603388d97b3ab935f2 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 6 Aug 2019 11:46:15 +0200 Subject: [PATCH] src/client/http_client.rs: minor code cleanup --- src/client/http_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/http_client.rs b/src/client/http_client.rs index ee7202a8..6718bf26 100644 --- a/src/client/http_client.rs +++ b/src/client/http_client.rs @@ -660,14 +660,14 @@ impl BackupClient { DataBlob::encode(&contents, None, compress)? }; let raw_data = blob.into_inner(); - Ok((raw_data, contents.len())) + Ok((raw_data, contents.len() as u64)) }) .and_then(move |(raw_data, size)| { let csum = openssl::sha::sha256(&raw_data); let param = json!({"encoded-size": raw_data.len(), "file-name": file_name }); h2.upload("blob", Some(param), raw_data) .map(move |_| { - BackupStats { size: size as u64, csum } + BackupStats { size, csum } }) }) });