Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Aug 23, 2023
1 parent d2cafd4 commit fd4b03d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/btreemap.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use derive_more::Debug;
use std::borrow::Borrow;
use std::collections::btree_map::*;
use std::ops::RangeBounds;
use std::collections::BTreeMap;
use std::iter::{FromIterator, IntoIterator};
use std::ops::RangeBounds;
use std::ops::{Index, IndexMut};

use crate::DefaultFn;
Expand Down Expand Up @@ -257,8 +257,7 @@ impl<K: Eq + Ord, V> DefaultBTreeMap<K, V> {
self.map.retain(f)
}
#[inline]
pub fn append(&mut self, other: &mut Self)
{
pub fn append(&mut self, other: &mut Self) {
self.map.append(&mut other.map)
}
#[inline]
Expand Down
3 changes: 1 addition & 2 deletions src/hashmap.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use derive_more::Debug;
use std::borrow::Borrow;
use std::collections::hash_map::*;
use std::collections::TryReserveError;
use std::collections::HashMap;
use std::collections::TryReserveError;
use std::hash::Hash;
use std::iter::{FromIterator, IntoIterator};
use std::ops::{Index, IndexMut};
Expand Down Expand Up @@ -287,7 +287,6 @@ impl<K: Eq + Hash, V> DefaultHashMap<K, V> {
{
self.map.remove_entry(k)
}

}

impl<K: Eq + Hash, V: Default> FromIterator<(K, V)> for DefaultHashMap<K, V> {
Expand Down

0 comments on commit fd4b03d

Please sign in to comment.