Lots of clippy appeasement

This commit is contained in:
Lennart
2025-10-27 20:12:21 +01:00
parent 0d071d3b92
commit 86cf490fa9
84 changed files with 413 additions and 435 deletions

View File

@@ -1,10 +1,12 @@
const SYNC_NAMESPACE: &str = "github.com/lennart-k/rustical/ns/";
#[must_use] pub fn format_synctoken(synctoken: i64) -> String {
#[must_use]
pub fn format_synctoken(synctoken: i64) -> String {
format!("{SYNC_NAMESPACE}{synctoken}")
}
#[must_use] pub fn parse_synctoken(synctoken: &str) -> Option<i64> {
#[must_use]
pub fn parse_synctoken(synctoken: &str) -> Option<i64> {
if !synctoken.starts_with(SYNC_NAMESPACE) {
return None;
}