From 4f288690a6074513e5699a3dc3f75085c63bfc50 Mon Sep 17 00:00:00 2001 From: weishu Date: Mon, 1 Jan 2024 13:58:21 +0800 Subject: [PATCH] Fix build --- userspace/ksud/src/module.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/module.rs b/userspace/ksud/src/module.rs index df0e923caa58..827086bf856f 100644 --- a/userspace/ksud/src/module.rs +++ b/userspace/ksud/src/module.rs @@ -971,7 +971,7 @@ impl ModuleApi for KsuModuleApi { } let content = std::fs::read(module_prop)?; let mut module_id: String = String::new(); - PropertiesIter::new_with_encoding(Cursor::new(content), encoding::all::UTF_8) + PropertiesIter::new_with_encoding(Cursor::new(content), encoding_rs::UTF_8) .read_into(|k, v| { if k.eq("id") { module_id = v;