Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
korken89 committed Mar 25, 2021
1 parent 8ba71d4 commit 305de71
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 26 deletions.
8 changes: 1 addition & 7 deletions src/de.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
//! missing doc

use core::{fmt, marker::PhantomData};

// use generic_array::{typenum::PowerOfTwo, ArrayLength};
use hash32::{BuildHasherDefault, Hash, Hasher};
use serde::de::{self, Deserialize, Deserializer, Error, MapAccess, SeqAccess};

use crate::{
indexmap::{Bucket, Pos},
sealed::binary_heap::Kind as BinaryHeapKind,
BinaryHeap, IndexMap, IndexSet, LinearMap, String, Vec,
};
Expand Down Expand Up @@ -230,7 +224,7 @@ impl<'de, const N:usize> Deserialize<'de> for String<N>
where
D: Deserializer<'de>,
{
struct ValueVisitor<'de, const N:usize>(PhantomData<(&'de ())>);
struct ValueVisitor<'de, const N:usize>(PhantomData<&'de ()>);

impl<'de, const N:usize > de::Visitor<'de> for ValueVisitor<'de, N>
{
Expand Down
2 changes: 1 addition & 1 deletion src/indexset.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::indexmap::{self, Bucket, IndexMap, Pos};
use crate::indexmap::{self, IndexMap};
use core::{borrow::Borrow, fmt, iter::FromIterator};
use hash32::{BuildHasher, BuildHasherDefault, FnvHasher, Hash, Hasher};

Expand Down
9 changes: 1 addition & 8 deletions src/linear_map.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
use core::{
borrow::Borrow,
fmt,
iter::FromIterator,
mem::{self, MaybeUninit},
ops, ptr, slice,
};

use crate::Vec;
use core::{borrow::Borrow, fmt, iter::FromIterator, mem, ops, slice};

/// A fixed capacity map / dictionary that performs lookups via linear search
///
Expand Down
13 changes: 4 additions & 9 deletions src/ser.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
//! missing doc

// use generic_array::{typenum::PowerOfTwo, ArrayLength};
use hash32::{BuildHasher, Hash};
use serde::ser::{Serialize, SerializeMap, SerializeSeq, Serializer};

use crate::{
indexmap::{Bucket, Pos},
sealed::binary_heap::Kind as BinaryHeapKind,
BinaryHeap, IndexMap, IndexSet, LinearMap, String, Vec,
sealed::binary_heap::Kind as BinaryHeapKind, BinaryHeap, IndexMap, IndexSet, LinearMap, String,
Vec,
};
use hash32::{BuildHasher, Hash};
use serde::ser::{Serialize, SerializeMap, SerializeSeq, Serializer};

// Sequential containers

Expand Down
1 change: 0 additions & 1 deletion src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@ where
#[cfg(test)]
mod tests {
use crate::Vec;
use as_slice::AsSlice;
use core::fmt::Write;

#[test]
Expand Down

0 comments on commit 305de71

Please sign in to comment.