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]
|
||||
axum = { version = "0.6.20", optional = true }
|
||||
bytes = "1.5.0"
|
||||
|
@ -14,14 +14,7 @@
|
||||
|
||||
//! [`tower`] layers and services to help building HTTP client and servers
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(
|
||||
clippy::all,
|
||||
clippy::str_to_string,
|
||||
rustdoc::missing_crate_level_docs,
|
||||
rustdoc::broken_intra_doc_links
|
||||
)]
|
||||
#![warn(clippy::pedantic)]
|
||||
#![deny(rustdoc::missing_crate_level_docs)]
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
|
||||
#[cfg(feature = "client")]
|
||||
|
@ -136,7 +136,7 @@ async fn test_urlencoded_request_body() {
|
||||
}
|
||||
|
||||
let bytes = hyper::body::to_bytes(request.into_body()).await?;
|
||||
assert_eq!(bytes.to_vec(), br#"hello=world"#.to_vec());
|
||||
assert_eq!(bytes.to_vec(), br"hello=world".to_vec());
|
||||
|
||||
let res = Response::new(hyper::Body::empty());
|
||||
Ok(res)
|
||||
|
Reference in New Issue
Block a user