workspace: fix lint error (#234)
Some checks failed
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled

* cargo.toml: split `keyword_idents` lint

* dandelion-tower: fix doc

* fix doc/clippy
This commit is contained in:
hinto-janai 2024-07-25 17:47:39 -04:00 committed by GitHub
parent 929d19c450
commit 7416164b19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 4 deletions

View file

@ -275,7 +275,8 @@ clone_on_ref_ptr = "deny"
# Cold # Cold
absolute_paths_not_starting_with_crate = "deny" absolute_paths_not_starting_with_crate = "deny"
explicit_outlives_requirements = "deny" explicit_outlives_requirements = "deny"
keyword_idents = "deny" keyword_idents_2018 = "deny"
keyword_idents_2024 = "deny"
missing_abi = "deny" missing_abi = "deny"
non_ascii_idents = "deny" non_ascii_idents = "deny"
non_local_definitions = "deny" non_local_definitions = "deny"

View file

@ -55,7 +55,7 @@ pub const fn unix_clock(seconds_after_unix_epoch: u64) -> u32 {
/// - The seconds returned is guaranteed to be `0..=59` /// - The seconds returned is guaranteed to be `0..=59`
/// - The minutes returned is guaranteed to be `0..=59` /// - The minutes returned is guaranteed to be `0..=59`
/// - The hours returned can be over `23`, as this is not a clock function, /// - The hours returned can be over `23`, as this is not a clock function,
/// see [`secs_to_clock`] for clock-like behavior that wraps around on `24` /// see [`secs_to_clock`] for clock-like behavior that wraps around on `24`
/// ///
/// ```rust /// ```rust
/// # use cuprate_helper::time::*; /// # use cuprate_helper::time::*;

View file

@ -51,7 +51,7 @@ use crate::{
/// ///
/// - `buffer_size` is the size of the channel's buffer between the [`DandelionPoolService`] and [`DandelionPool`]. /// - `buffer_size` is the size of the channel's buffer between the [`DandelionPoolService`] and [`DandelionPool`].
/// - `dandelion_router` is the router service, kept generic instead of [`DandelionRouter`](crate::DandelionRouter) to allow /// - `dandelion_router` is the router service, kept generic instead of [`DandelionRouter`](crate::DandelionRouter) to allow
/// user to customise routing functionality. /// user to customise routing functionality.
/// - `backing_pool` is the backing transaction storage service /// - `backing_pool` is the backing transaction storage service
/// - `config` is [`DandelionConfig`]. /// - `config` is [`DandelionConfig`].
pub fn start_dandelion_pool<P, R, Tx, TxID, PID>( pub fn start_dandelion_pool<P, R, Tx, TxID, PID>(

View file

@ -194,7 +194,7 @@ where
/// - download the next batch of blocks /// - download the next batch of blocks
/// - request the next chain entry /// - request the next chain entry
/// - download an already requested batch of blocks (this might happen due to an error in the previous request /// - download an already requested batch of blocks (this might happen due to an error in the previous request
/// or because the queue of ready blocks is too large, so we need the oldest block to clear it). /// or because the queue of ready blocks is too large, so we need the oldest block to clear it).
struct BlockDownloader<N: NetworkZone, S, C> { struct BlockDownloader<N: NetworkZone, S, C> {
/// The client pool. /// The client pool.
client_pool: Arc<ClientPool<N>>, client_pool: Arc<ClientPool<N>>,

View file

@ -140,6 +140,7 @@ mod tests {
proptest! { proptest! {
#[test] #[test]
#[allow(clippy::mutable_key_type)]
fn block_queue_returns_items_in_order(batches in vec(ready_batch_strategy(), 0..10_000)) { fn block_queue_returns_items_in_order(batches in vec(ready_batch_strategy(), 0..10_000)) {
block_on(async move { block_on(async move {
let (buffer_tx, mut buffer_rx) = cuprate_async_buffer::new_buffer(usize::MAX); let (buffer_tx, mut buffer_rx) = cuprate_async_buffer::new_buffer(usize::MAX);