Skip to content

Commit aaed86f

Browse files
committed
Use to_string_lossy()
1 parent 9ec046d commit aaed86f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/gpu/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,7 @@ impl Gpu {
267267
let mut hwmon_vec: Vec<PathBuf> = Vec::new();
268268
for hwmon in glob(&format!(
269269
"{}/hwmon/hwmon?",
270-
sysfs_device_path
271-
.to_str()
272-
.context("error transforming PathBuf to str")?
270+
sysfs_device_path.to_string_lossy()
273271
))?
274272
.flatten()
275273
{

0 commit comments

Comments
 (0)