We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15babf5 commit 58aba55Copy full SHA for 58aba55
crates/std_detect/src/detect/os/linux/cpuinfo.rs
@@ -17,7 +17,7 @@ impl CpuInfo {
17
})
18
}
19
/// Returns the value of the cpuinfo `field`.
20
- pub(crate) fn field(&self, field: &str) -> CpuInfoField {
+ pub(crate) fn field(&self, field: &str) -> CpuInfoField<'_> {
21
for l in self.raw.lines() {
22
if l.trim().starts_with(field) {
23
return CpuInfoField::new(l.split(": ").nth(1));
0 commit comments