mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-19 15:39:43 +00:00
run clippy fix
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
const SYNC_NAMESPACE: &str = "github.com/lennart-k/rustical/ns/";
|
||||
|
||||
pub fn format_synctoken(synctoken: i64) -> String {
|
||||
#[must_use] pub fn format_synctoken(synctoken: i64) -> String {
|
||||
format!("{SYNC_NAMESPACE}{synctoken}")
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user