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/command/archive_command.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/command/archive_command.rs') diff --git a/crates/shirabe/src/command/archive_command.rs b/crates/shirabe/src/command/archive_command.rs index ce1d496..741847a 100644 --- a/crates/shirabe/src/command/archive_command.rs +++ b/crates/shirabe/src/command/archive_command.rs @@ -22,7 +22,6 @@ use crate::util::Filesystem; use crate::util::Platform; use crate::util::ProcessExecutor; use crate::util::r#loop::Loop; -use anyhow::Result; use indexmap::IndexMap; use shirabe_external_packages::composer::pcre::{CaptureKey, Preg}; use shirabe_external_packages::symfony::console::command::command::Command; @@ -260,7 +259,7 @@ impl ArchiveCommand { file_name: Option, ignore_filters: bool, composer: Option<&PartialComposerHandle>, - ) -> Result { + ) -> anyhow::Result { let archive_stub_return = self.test_hooks.borrow().archive_stub_return; if let Some(return_value) = archive_stub_return { self.test_hooks @@ -352,7 +351,7 @@ impl ArchiveCommand { io: std::rc::Rc>, package_name: &str, version: Option<&str>, - ) -> Result> { + ) -> anyhow::Result> { io.write_error("Searching for the specified package."); let mut version = version.map(|v| v.to_string()); -- cgit v1.3.1