From 9be0f98f71fe8071ab839ac1036b4064ac3172b4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 29 Jun 2026 00:03:00 +0900 Subject: chore(lint): ban bare `use anyhow::Result` and fully qualify it Add a no_banned_use linter that forbids importing anyhow::Result, and update all call sites to reference it via its fully-qualified path so it is never confused with std::result::Result. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/self_update/keys.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/shirabe/src/self_update') diff --git a/crates/shirabe/src/self_update/keys.rs b/crates/shirabe/src/self_update/keys.rs index b1da7b5..3fa29f7 100644 --- a/crates/shirabe/src/self_update/keys.rs +++ b/crates/shirabe/src/self_update/keys.rs @@ -1,13 +1,12 @@ //! ref: composer/src/Composer/SelfUpdate/Keys.php -use anyhow::Result; use regex::Regex; use shirabe_php_shim::hash; pub struct Keys; impl Keys { - pub fn fingerprint(path: &str) -> Result { + pub fn fingerprint(path: &str) -> anyhow::Result { let content = std::fs::read_to_string(path)?; let re = Regex::new(r"\s").unwrap(); let cleaned = re.replace_all(&content, ""); -- cgit v1.3.1