xmpp: Implement Deref<Target=ResourcePart> for RoomNick

This commit is contained in:
xmppftw xmppftw 2024-12-18 21:48:29 +01:00
commit c1a3c85556
2 changed files with 10 additions and 2 deletions

View file

@ -85,6 +85,14 @@ impl core::str::FromStr for RoomNick {
}
}
impl core::ops::Deref for RoomNick {
type Target = ResourcePart;
fn deref(&self) -> &ResourcePart {
&self.0
}
}
#[cfg(test)]
mod tests {
#[test]