1
0
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:
Quentin Gliech
2022-01-12 12:26:35 +01:00
parent 5b9c35a079
commit 219035335c
4 changed files with 26 additions and 13 deletions

View File

@@ -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()