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/util/loop.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/util/loop.rs') diff --git a/crates/shirabe/src/util/loop.rs b/crates/shirabe/src/util/loop.rs index 2a0e6d3..4efd770 100644 --- a/crates/shirabe/src/util/loop.rs +++ b/crates/shirabe/src/util/loop.rs @@ -2,7 +2,6 @@ use crate::util::HttpDownloader; use crate::util::ProcessExecutor; -use anyhow::Result; use shirabe_external_packages::symfony::console::helper::ProgressBar; #[derive(Debug)] @@ -40,9 +39,11 @@ impl Loop { pub async fn wait<'p>( &mut self, - promises: Vec> + 'p>>>, + promises: Vec< + std::pin::Pin> + 'p>>, + >, _progress: Option<&mut ProgressBar>, - ) -> Result<()> { + ) -> anyhow::Result<()> { let mut uncaught: Option = None; // TODO(phase-c-promise): the asynchronous worker classes (HttpDownloader / ProcessExecutor) -- cgit v1.3.1