identifiers: Merge impl blocks

This commit is contained in:
Jonas Platte 2021-09-22 13:40:01 +02:00
parent 237b423996
commit ef0e9c77c3
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -74,9 +74,7 @@ impl UserId {
})
}
}
}
impl UserId {
/// Returns the user's localpart.
pub fn localpart(&self) -> &str {
&self.full_id[1..self.colon_idx.get() as usize]