scx_lavd: fix warnings from the rust code

Signed-off-by: Changwoo Min <changwoo@igalia.com>
This commit is contained in:
Changwoo Min 2024-07-31 00:21:32 +09:00
parent 643edb5431
commit d2615b4975

View File

@ -132,13 +132,12 @@ struct CpuFlatId {
struct FlatTopology {
cpu_fids: Vec<CpuFlatId>,
nr_cpus_online: usize,
prefer_smt_core: bool,
}
impl fmt::Display for FlatTopology {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
for cpu_fid in self.cpu_fids.iter() {
write!(f, "\n{:?}", cpu_fid);
write!(f, "\n{:?}", cpu_fid).ok();
}
Ok(())
}
@ -234,7 +233,6 @@ impl FlatTopology {
Ok(FlatTopology {
cpu_fids,
nr_cpus_online: topo.nr_cpus_online(),
prefer_smt_core,
})
}