Replace &String with &str

This commit is contained in:
Sam Wilson
2018-10-16 10:00:17 -04:00
committed by Levente Kurusa
parent 751dbc7244
commit dd621eae4e
5 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ impl NetPrioController {
}
/// Set the priority of the network traffic on `eif` to be `prio`.
pub fn set_if_prio(&self, eif: &String, prio: u64) -> Result<()> {
pub fn set_if_prio(&self, eif: &str, prio: u64) -> Result<()> {
self.open_path("net_prio.ifpriomap", true)
.and_then(|mut file| {
file.write_all(format!("{} {}", eif, prio).as_ref())