mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2026-02-09 20:44:34 -05:00
resolve the last few relevant pedantic clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
828feae23d
commit
0e4dbd429a
20 changed files with 464 additions and 560 deletions
|
|
@ -473,7 +473,7 @@ impl Service {
|
|||
}
|
||||
|
||||
/// Ensure that a user only sees signatures from themselves and the target user
|
||||
pub fn clean_signatures<F: Fn(&UserId) -> bool>(
|
||||
pub(crate) fn clean_signatures<F: Fn(&UserId) -> bool>(
|
||||
cross_signing_key: &mut serde_json::Value, sender_user: Option<&UserId>, user_id: &UserId, allowed_signatures: F,
|
||||
) -> Result<(), Error> {
|
||||
if let Some(signatures) = cross_signing_key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue