You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Enable clippy lints on iana crates
This commit is contained in:
@@ -25,6 +25,7 @@ pub struct Section {
|
||||
pub url: Option<&'static str>,
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub const fn s(key: &'static str, doc: &'static str) -> Section {
|
||||
Section {
|
||||
key,
|
||||
@@ -45,6 +46,7 @@ pub trait EnumEntry: DeserializeOwned + Send + Sync {
|
||||
const URL: &'static str;
|
||||
const SECTIONS: &'static [Section];
|
||||
|
||||
#[must_use]
|
||||
fn sections() -> Vec<Section> {
|
||||
Self::SECTIONS
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user