Skip to content

Commit e5895f9

Browse files
CopilotJohn15321
andcommitted
Fix rustfmt formatting issues in src/download.rs documentation
Co-authored-by: John15321 <[email protected]>
1 parent beacfa7 commit e5895f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/download.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use sha2::digest::DynDigest;
1313
const MAX_DOWNLOAD_RETRY: u32 = 20;
1414

1515
/// Result of a successful download operation.
16-
///
16+
///
1717
/// Contains the computed hashes and file handle for the downloaded content.
1818
pub struct DownloadResult {
1919
/// SHA-256 hash of the downloaded file
@@ -32,7 +32,7 @@ pub struct DownloadResult {
3232
/// # Arguments
3333
///
3434
/// * `path` - Path to the file to hash
35-
/// * `maxlen` - Optional maximum number of bytes to read from the file. If `None`,
35+
/// * `maxlen` - Optional maximum number of bytes to read from the file. If `None`,
3636
/// the entire file is hashed. If `Some(len)`, only the first `len` bytes are hashed.
3737
///
3838
/// # Returns
@@ -217,10 +217,10 @@ where
217217
/// ```ignore
218218
/// use reqwest::blocking::Client;
219219
/// use std::path::Path;
220-
///
220+
///
221221
/// let client = Client::new();
222222
/// let result = download_and_hash(
223-
/// &client,
223+
/// &client,
224224
/// "https://example.com/file.zip",
225225
/// Path::new("downloaded_file.zip"),
226226
/// None, // no SHA-256 validation

0 commit comments

Comments
 (0)