Skip to content

Commit 71188c3

Browse files
authored
Merge pull request #185 from AfoHT/cargofmt
Cargo format
2 parents 70687d8 + e1177df commit 71188c3

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

src/histbuf.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use generic_array::{ArrayLength, GenericArray, sequence::GenericSequence};
1+
use generic_array::{sequence::GenericSequence, ArrayLength, GenericArray};
22

33
/// A "history buffer", similar to a write-only ring buffer of fixed length.
44
///
@@ -42,7 +42,6 @@ where
4242
write_at: usize,
4343
}
4444

45-
4645
impl<T, N> HistoryBuffer<T, N>
4746
where
4847
N: ArrayLength<T>,

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,20 @@
7878
pub use binary_heap::BinaryHeap;
7979
pub use generic_array::typenum::{consts, PowerOfTwo};
8080
pub use generic_array::ArrayLength;
81+
pub use histbuf::HistoryBuffer;
8182
pub use indexmap::{Bucket, FnvIndexMap, IndexMap, Pos};
8283
pub use indexset::{FnvIndexSet, IndexSet};
8384
pub use linear_map::LinearMap;
8485
pub use string::String;
8586
pub use vec::Vec;
86-
pub use histbuf::HistoryBuffer;
8787

8888
// NOTE this code was last ported from v0.4.1 of the indexmap crate
89+
mod histbuf;
8990
mod indexmap;
9091
mod indexset;
9192
mod linear_map;
9293
mod string;
9394
mod vec;
94-
mod histbuf;
9595

9696
#[cfg(feature = "serde")]
9797
mod de;

src/ufmt.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
use ufmt_write::uWrite;
22

3-
use crate::{
4-
ArrayLength,
5-
string::String,
6-
vec::Vec,
7-
};
3+
use crate::{string::String, vec::Vec, ArrayLength};
84

95
impl<N> uWrite for String<N>
106
where

tests/cpass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use heapless::{
44
consts,
55
spsc::{Consumer, Producer, Queue},
6-
Vec, HistoryBuffer,
6+
HistoryBuffer, Vec,
77
};
88

99
#[test]

0 commit comments

Comments
 (0)