diff --git a/crates/ruma-identifiers/src/user_id.rs b/crates/ruma-identifiers/src/user_id.rs index 9fa1033e..fa3b2c2d 100644 --- a/crates/ruma-identifiers/src/user_id.rs +++ b/crates/ruma-identifiers/src/user_id.rs @@ -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]