Use &str instead of String whenever possible

This commit is contained in:
2023-01-12 23:43:45 +01:00
parent 13f5c87c03
commit 06389d83f7
14 changed files with 76 additions and 62 deletions

View File

@@ -39,8 +39,8 @@ impl AudioSetup {
}
impl Device for AudioSetup {
fn get_id(&self) -> String {
self.identifier.clone()
fn get_id(&self) -> &str {
&self.identifier
}
}