Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/zrx-scheduler/src/scheduler/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub struct Session<I, T> {
id: usize,
/// Item submission sender.
sender: Sender<Message<I>>,
/// Type marker.
/// Capture types.
marker: PhantomData<T>,
}

Expand Down
2 changes: 1 addition & 1 deletion crates/zrx-scheduler/src/scheduler/tick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub struct Tick<I, S> {
report: Report,
/// Waiting deadline.
deadline: Option<Instant>,
/// Type marker.
/// Capture types.
marker: PhantomData<(I, S)>,
}

Expand Down
9 changes: 6 additions & 3 deletions crates/zrx-store/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,10 @@ where
///
/// This method only updates the data of the [`Item`], but does not change
/// the values of [`Item::deadline`] in case the item already exists. The
/// caller might use [`Queue::insert_if_changed`] to check, if any of those
/// values should be changed deliberately.
/// caller might use [`Queue::insert_if_changed`][] to check, if any of
/// those values should be changed deliberately.
///
/// [`Queue::insert_if_changed`]: crate::store::StoreMut::insert_if_changed
///
/// # Examples
///
Expand Down Expand Up @@ -659,12 +661,13 @@ impl<K, V> Default for Queue<K, V, HashMap<K, Item>>
where
K: Key,
{
/// Creates a queue with [`HashMap::default`] as a store.
/// Creates a queue with [`HashMap::default`][] as a store.
///
/// Note that this method does not allow to customize the [`BuildHasher`][],
/// but uses [`ahash`] by default, which is the fastest known hasher.
///
/// [`BuildHasher`]: std::hash::BuildHasher
/// [`HashMap::default`]: Default::default
///
/// # Examples
///
Expand Down
1 change: 1 addition & 0 deletions crates/zrx-store/src/store/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
mod core;
#[cfg(feature = "litemap")]
mod litemap;
mod slab;

// ----------------------------------------------------------------------------
// Functions
Expand Down
2 changes: 0 additions & 2 deletions crates/zrx-store/src/store/collection/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ where
fn keys<'a>(&'a self) -> impl Iterator<Item = &'a K>
where
K: 'a,
V: 'a,
{
HashMap::keys(self)
}
Expand Down Expand Up @@ -748,7 +747,6 @@ where
fn keys<'a>(&'a self) -> impl Iterator<Item = &'a K>
where
K: 'a,
V: 'a,
{
BTreeMap::keys(self)
}
Expand Down
1 change: 0 additions & 1 deletion crates/zrx-store/src/store/collection/litemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ where
fn keys<'a>(&'a self) -> impl Iterator<Item = &'a K>
where
K: 'a,
V: 'a,
{
LiteMap::keys(self)
}
Expand Down
Loading