From c43b8b752bcf2fc775818a092ff485b31360b8c9 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Fri, 13 Oct 2023 13:35:31 +0900 Subject: [PATCH] fixup! Implement flag file for optimistic cold boot state --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 231e568..e463a2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,7 @@ struct Options { } fn get_machine() -> String { - read_to_string("/proc/device-tree/compatible") + fs::read_to_string("/proc/device-tree/compatible") .expect("Could not read device tree compatible") .strip_prefix("apple,") .expect("Unexpected compatible format")