Merge pull request #185 from AfoHT/cargofmt

Cargo format
This commit is contained in:
Emil Fresk 2020-12-03 20:50:48 +01:00 committed by GitHub
commit 71188c3202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 10 deletions

View File

@ -1,4 +1,4 @@
use generic_array::{ArrayLength, GenericArray, sequence::GenericSequence};
use generic_array::{sequence::GenericSequence, ArrayLength, GenericArray};
/// A "history buffer", similar to a write-only ring buffer of fixed length.
///
@ -42,7 +42,6 @@ where
write_at: usize,
}
impl<T, N> HistoryBuffer<T, N>
where
N: ArrayLength<T>,

View File

@ -78,20 +78,20 @@
pub use binary_heap::BinaryHeap;
pub use generic_array::typenum::{consts, PowerOfTwo};
pub use generic_array::ArrayLength;
pub use histbuf::HistoryBuffer;
pub use indexmap::{Bucket, FnvIndexMap, IndexMap, Pos};
pub use indexset::{FnvIndexSet, IndexSet};
pub use linear_map::LinearMap;
pub use string::String;
pub use vec::Vec;
pub use histbuf::HistoryBuffer;
// NOTE this code was last ported from v0.4.1 of the indexmap crate
mod histbuf;
mod indexmap;
mod indexset;
mod linear_map;
mod string;
mod vec;
mod histbuf;
#[cfg(feature = "serde")]
mod de;

View File

@ -1,10 +1,6 @@
use ufmt_write::uWrite;
use crate::{
ArrayLength,
string::String,
vec::Vec,
};
use crate::{string::String, vec::Vec, ArrayLength};
impl<N> uWrite for String<N>
where

View File

@ -3,7 +3,7 @@
use heapless::{
consts,
spsc::{Consumer, Producer, Queue},
Vec, HistoryBuffer,
HistoryBuffer, Vec,
};
#[test]