You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Enable clippy lints on a workspace level
This enables a lot more lints than before in some crates, so this fixed a lot of warnings as well.
This commit is contained in:
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
aead = { version = "0.5.2", features = ["std"] }
|
||||
const-oid = { version = "0.9.5", features = ["std"] }
|
||||
|
@ -14,10 +14,6 @@
|
||||
|
||||
//! A crate to store keys which can then be used to sign and verify JWTs.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(clippy::all, clippy::str_to_string, rustdoc::broken_intra_doc_links)]
|
||||
#![warn(clippy::pedantic)]
|
||||
|
||||
use std::{ops::Deref, sync::Arc};
|
||||
|
||||
use der::{zeroize::Zeroizing, Decode, Encode, EncodePem};
|
||||
|
@ -159,6 +159,7 @@ fn load_unencrypted_as_encrypted_error() {
|
||||
.is_unencrypted());
|
||||
}
|
||||
|
||||
#[allow(clippy::similar_names)]
|
||||
#[test]
|
||||
fn generate_sign_and_verify() {
|
||||
// Use a seeded RNG to keep the snapshot stable
|
||||
|
Reference in New Issue
Block a user