summary refs log tree commit diff
path: root/rust/src/push/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/push/utils.rs')
-rw-r--r--rust/src/push/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/push/utils.rs b/rust/src/push/utils.rs

index 37e5f7fc10..d070d8f0d2 100644 --- a/rust/src/push/utils.rs +++ b/rust/src/push/utils.rs
@@ -13,7 +13,7 @@ pub(crate) fn get_localpart_from_id(id: &str) -> Result<&str, Error> { .with_context(|| format!("ID does not contain colon: {id}"))?; // We need to strip off the first character, which is the ID type. - if localpart.len() == 0 { + if localpart.is_empty() { bail!("Invalid ID {id}"); }