Skip to content

Commit a21d08e

Browse files
NoisyCoiljannau
authored andcommitted
fixup! iio: common: Add AOP sensor drivers
str::from_utf8 was stabilized in rustc 1.87, and the minimum supported rustc is currently 1.78, so builds fail with some supported rustc versions. The rest of the kernel uses core::str::from_utf8. Signed-off-by: NoisyCoil <noisycoil@disroot.org>
1 parent c04b2d2 commit a21d08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/common/aop_sensors/aop_als.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn get_lux_offset(aop: &dyn AOP, dev: &platform::Device, svc: &EPICService) -> R
3030
dev_warn!(
3131
dev.as_ref(),
3232
"Unknown sensor type {:?}",
33-
str::from_utf8(&name)
33+
core::str::from_utf8(&name)
3434
);
3535
Err(EIO)
3636
}

0 commit comments

Comments
 (0)