Fix stale lint expectations.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
#![expect(clippy::enum_glob_use)]
|
|
||||||
#![expect(clippy::too_many_arguments)]
|
#![expect(clippy::too_many_arguments)]
|
||||||
|
|
||||||
pub(crate) mod admin;
|
pub(crate) mod admin;
|
||||||
|
|||||||
@@ -278,7 +278,6 @@ impl<E: Event> TestStore<E> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl TestStore<PduEvent> {
|
impl TestStore<PduEvent> {
|
||||||
#[expect(clippy::type_complexity)]
|
|
||||||
fn set_up(
|
fn set_up(
|
||||||
&mut self,
|
&mut self,
|
||||||
) -> (StateMap<OwnedEventId>, StateMap<OwnedEventId>, StateMap<OwnedEventId>) {
|
) -> (StateMap<OwnedEventId>, StateMap<OwnedEventId>, StateMap<OwnedEventId>) {
|
||||||
|
|||||||
@@ -726,7 +726,6 @@ fn JOIN_RULE() -> HashMap<OwnedEventId, PduEvent> {
|
|||||||
|
|
||||||
macro_rules! state_set {
|
macro_rules! state_set {
|
||||||
($($kind:expr => $key:expr => $id:expr),* $(,)?) => {{
|
($($kind:expr => $key:expr => $id:expr),* $(,)?) => {{
|
||||||
#[expect(unused_mut)]
|
|
||||||
let mut x = StateMap::new();
|
let mut x = StateMap::new();
|
||||||
$(
|
$(
|
||||||
x.insert(($kind, $key.into()), $id);
|
x.insert(($kind, $key.into()), $id);
|
||||||
|
|||||||
@@ -248,7 +248,6 @@ pub(super) async fn do_check(
|
|||||||
assert_eq!(expected_state, end_state);
|
assert_eq!(expected_state, end_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[expect(clippy::exhaustive_structs)]
|
|
||||||
pub(super) struct TestStore(pub(super) HashMap<OwnedEventId, PduEvent>);
|
pub(super) struct TestStore(pub(super) HashMap<OwnedEventId, PduEvent>);
|
||||||
|
|
||||||
impl TestStore {
|
impl TestStore {
|
||||||
@@ -286,7 +285,6 @@ impl TestStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// A StateStore implementation for testing
|
// A StateStore implementation for testing
|
||||||
#[expect(clippy::type_complexity)]
|
|
||||||
impl TestStore {
|
impl TestStore {
|
||||||
pub(super) fn set_up(
|
pub(super) fn set_up(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![expect(clippy::disallowed_methods)]
|
|
||||||
|
|
||||||
use crate::utils;
|
use crate::utils;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -109,7 +107,6 @@ async fn mutex_map_contend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[expect(clippy::iter_on_single_items, clippy::many_single_char_names)]
|
|
||||||
fn set_intersection_none() {
|
fn set_intersection_none() {
|
||||||
use utils::set::intersection;
|
use utils::set::intersection;
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ pub(crate) async fn handle(
|
|||||||
skip_all,
|
skip_all,
|
||||||
ret(level = "trace"),
|
ret(level = "trace"),
|
||||||
)]
|
)]
|
||||||
|
#[cfg_attr(not(debug_assertions), expect(unused_variables))]
|
||||||
async fn execute(
|
async fn execute(
|
||||||
// we made a safety contract that Services will not go out of scope
|
// we made a safety contract that Services will not go out of scope
|
||||||
// during the request; this ensures a reference is accounted for at
|
// during the request; this ensures a reference is accounted for at
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ pub(super) const SIGNAL: &str = "SIGUSR2";
|
|||||||
|
|
||||||
/// Possibly spawn the terminal console at startup if configured.
|
/// Possibly spawn the terminal console at startup if configured.
|
||||||
#[implement(super::Service)]
|
#[implement(super::Service)]
|
||||||
#[expect(clippy::unused_async)]
|
#[cfg_attr(not(feature = "console"), expect(clippy::unused_async))]
|
||||||
pub(super) async fn console_auto_start(&self) {
|
pub(super) async fn console_auto_start(&self) {
|
||||||
#[cfg(feature = "console")]
|
#[cfg(feature = "console")]
|
||||||
if self
|
if self
|
||||||
@@ -23,7 +23,7 @@ pub(super) async fn console_auto_start(&self) {
|
|||||||
|
|
||||||
/// Shutdown the console when the admin worker terminates.
|
/// Shutdown the console when the admin worker terminates.
|
||||||
#[implement(super::Service)]
|
#[implement(super::Service)]
|
||||||
#[expect(clippy::unused_async)]
|
#[cfg_attr(not(feature = "console"), expect(clippy::unused_async))]
|
||||||
pub(super) async fn console_auto_stop(&self) {
|
pub(super) async fn console_auto_stop(&self) {
|
||||||
#[cfg(feature = "console")]
|
#[cfg(feature = "console")]
|
||||||
self.console.close().await;
|
self.console.close().await;
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ impl Manager {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::unused_self)]
|
||||||
fn handle_abort(&self, _workers: &mut WorkersLocked<'_>, error: &Error) -> Result {
|
fn handle_abort(&self, _workers: &mut WorkersLocked<'_>, error: &Error) -> Result {
|
||||||
// not supported until service can be associated with abort
|
// not supported until service can be associated with abort
|
||||||
unimplemented!("unexpected worker task abort {error:?}");
|
unimplemented!("unexpected worker task abort {error:?}");
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ pub fn create(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[implement(Service)]
|
#[implement(Service)]
|
||||||
#[expect(clippy::useless_let_if_seq)]
|
#[allow(clippy::useless_let_if_seq)]
|
||||||
pub async fn try_auth(
|
pub async fn try_auth(
|
||||||
&self,
|
&self,
|
||||||
user_id: &UserId,
|
user_id: &UserId,
|
||||||
|
|||||||
Reference in New Issue
Block a user