From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/self_update/versions.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/self_update/versions.rs') diff --git a/crates/shirabe/src/self_update/versions.rs b/crates/shirabe/src/self_update/versions.rs index f5ba5d2..ebc992b 100644 --- a/crates/shirabe/src/self_update/versions.rs +++ b/crates/shirabe/src/self_update/versions.rs @@ -45,7 +45,10 @@ impl Versions { return Ok(ch.clone()); } - let channel_file = format!("{}/update-channel", self.config.get("home")); + let channel_file = format!( + "{}/update-channel", + self.config.get("home").as_string().unwrap_or("") + ); if std::path::Path::new(&channel_file).exists() { let channel = std::fs::read_to_string(&channel_file)?.trim().to_string(); if ["stable", "preview", "snapshot", "2.2"].contains(&channel.as_str()) { @@ -74,7 +77,10 @@ impl Versions { })); } - let channel_file = format!("{}/update-channel", self.config.get("home")); + let channel_file = format!( + "{}/update-channel", + self.config.get("home").as_string().unwrap_or("") + ); self.channel = Some(channel.clone()); // rewrite '2' and '1' channels to stable for future self-updates, but LTS ones like '2.2' remain pinned -- cgit v1.3.1