mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Replace &String with &str
This commit is contained in:
committed by
Levente Kurusa
parent
751dbc7244
commit
dd621eae4e
+1
-1
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user