Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ttlajus committed Aug 3, 2022
1 parent 1db6244 commit dacadad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@
extern crate conv;
extern crate itertools;
extern crate percent_encoding;
#[cfg(feature = "parallel_single_file_hashing")]
extern crate rayon;
extern crate sha1;
extern crate thiserror;
extern crate unicode_normalization;
#[cfg(feature = "parallel_single_file_hashing" )]
extern crate rayon;

pub(crate) mod util;
#[macro_use]
Expand Down
3 changes: 2 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use conv::ValueFrom;
use std::borrow::Cow;
use std::convert::TryFrom;
use std::path::{Path, PathBuf};
use conv::ValueFrom;
use LavaTorrentError;

pub(crate) fn u64_to_usize(src: u64) -> Result<usize, LavaTorrentError> {
Expand Down Expand Up @@ -45,6 +45,7 @@ pub(crate) fn u64_to_f64(src: u64) -> Result<f64, LavaTorrentError> {
LavaTorrentError::FailedNumericConv(Cow::Owned(format!("[{}] does not fit into f64.", src)))
})
}

// this method is recursive, i.e. entries in subdirectories
// are also returned
//
Expand Down

0 comments on commit dacadad

Please sign in to comment.