Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Nov 1, 2024
1 parent fc5417d commit 97d09b6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Standard library imports
use std::cmp::{ max, Ord};
use std::fmt;
use std::cmp::{max, Ord};
use std::collections::hash_map::IntoIter;
use std::collections::{HashMap, HashSet};
use std::fmt;
use std::fs::File;
use std::hash::{Hash, Hasher};
use std::io::{BufReader, BufWriter, Write};
use std::hash::{ Hasher, Hash };
//use std::path::Path;

// External crate imports
Expand All @@ -25,11 +25,10 @@ use sourmash::signature::SeqToHashes;
// Set version variable
const VERSION: &str = env!("CARGO_PKG_VERSION");


/// Hash value type, for custom hasing.
#[derive(Eq, PartialEq, Debug, Serialize, Deserialize, Clone, Ord, PartialOrd, Copy)]
pub struct HashIntoType {
h: u64
h: u64,
}

impl HashIntoType {
Expand All @@ -45,7 +44,7 @@ impl HashIntoType {
/// Conversion into u64.
impl Into<u64> for HashIntoType {
fn into(self: HashIntoType) -> u64 {
return self.h
return self.h;
}
}

Expand All @@ -67,7 +66,8 @@ impl fmt::Display for HashIntoType {
/// Custom hashing.
impl Hash for HashIntoType {
fn hash<H>(&self, state: &mut H)
where H: Hasher,
where
H: Hasher,
{
state.write_u64(self.h);
state.finish();
Expand Down Expand Up @@ -898,7 +898,6 @@ impl KmerCountTable {
}
}


// non-Python accessible methods
impl KmerCountTable {
// merge two tables that may have overlapping k-mers.
Expand Down

0 comments on commit 97d09b6

Please sign in to comment.