str instead of String

This commit is contained in:
Philipp Mildenberger 2023-03-16 00:41:43 +01:00
parent b6c60beb2d
commit 4da6d8ccc7

View file

@ -242,7 +242,7 @@ impl Client {
Ok((client, server_rx, initialize_notify))
}
pub fn name(&self) -> &String {
pub fn name(&self) -> &str {
&self.name
}