Skip to content

Commit

Permalink
fmt & tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Jul 16, 2023
1 parent 1ccb26a commit c687cd8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
8 changes: 8 additions & 0 deletions experimental/zerotrie/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion experimental/zerotrie/src/builder/nonconst/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub trait TrieBuilderStore {

/// Return the length in bytes of the store.
fn atbs_len(&self) -> usize;

/// Push a byte to the front of the store.
fn atbs_push_front(&mut self, byte: u8);

Expand Down
2 changes: 1 addition & 1 deletion experimental/zerotrie/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@
//! ```

use crate::byte_phf::PerfectByteHashMap;
use crate::helpers::*;
use crate::varint::read_varint_meta2;
use crate::varint::read_varint_meta3;
use crate::helpers::*;

#[cfg(feature = "alloc")]
use alloc::string::String;
Expand Down
5 changes: 4 additions & 1 deletion experimental/zerotrie/src/zerotrie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,10 @@ impl<Store> ZeroTrie<Store> {
}
/// Maps the store into another type.
#[cfg(feature = "serde")]
pub(crate) fn map_store<NewStore>(self, f: impl FnOnce(Store) -> NewStore) -> ZeroTrie<NewStore> {
pub(crate) fn map_store<NewStore>(
self,
f: impl FnOnce(Store) -> NewStore,
) -> ZeroTrie<NewStore> {
impl_dispatch!(self, map_store_into_zerotrie(f))
}
}
Expand Down

0 comments on commit c687cd8

Please sign in to comment.