fix edition 2024 lints

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-02-25 18:38:12 +00:00 committed by June Clementine Strawberry
commit a67ab75417
36 changed files with 60 additions and 72 deletions

View file

@ -69,7 +69,7 @@ pub async fn read_tokens(&self) -> Result<HashSet<String>> {
},
| Err(e) => error!("Failed to read the registration token file: {e}"),
}
};
}
if let Some(token) = &self.services.config.registration_token {
tokens.insert(token.to_owned());
}