diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-29 00:03:00 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-29 00:03:00 +0900 |
| commit | 9be0f98f71fe8071ab839ac1036b4064ac3172b4 (patch) | |
| tree | 66a2f4feba752f4761c40449e0827ad74fc9b02c /crates/shirabe/src/console/input | |
| parent | a84d531548efa678d4021cea891826e59f8fb462 (diff) | |
| download | php-shirabe-9be0f98f71fe8071ab839ac1036b4064ac3172b4.tar.gz php-shirabe-9be0f98f71fe8071ab839ac1036b4064ac3172b4.tar.zst php-shirabe-9be0f98f71fe8071ab839ac1036b4064ac3172b4.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/console/input')
| -rw-r--r-- | crates/shirabe/src/console/input/input_argument.rs | 3 | ||||
| -rw-r--r-- | crates/shirabe/src/console/input/input_option.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/crates/shirabe/src/console/input/input_argument.rs b/crates/shirabe/src/console/input/input_argument.rs index 53576dd..5fd9cec 100644 --- a/crates/shirabe/src/console/input/input_argument.rs +++ b/crates/shirabe/src/console/input/input_argument.rs @@ -1,6 +1,5 @@ //! ref: composer/src/Composer/Console/Input/InputArgument.php -use anyhow::Result; use shirabe_external_packages::symfony::console::input::InputArgument as BaseInputArgument; use shirabe_php_shim::PhpMixed; @@ -20,7 +19,7 @@ impl InputArgument { description: &str, default: Option<PhpMixed>, // TODO(cli-completion): suggested_values closure / list dropped along with completion support - ) -> Result<Self> { + ) -> anyhow::Result<Self> { let inner = BaseInputArgument::new( name.to_string(), mode, diff --git a/crates/shirabe/src/console/input/input_option.rs b/crates/shirabe/src/console/input/input_option.rs index c7b2af5..938f5a3 100644 --- a/crates/shirabe/src/console/input/input_option.rs +++ b/crates/shirabe/src/console/input/input_option.rs @@ -1,6 +1,5 @@ //! ref: composer/src/Composer/Console/Input/InputOption.php -use anyhow::Result; use shirabe_external_packages::symfony::console::input::InputOption as BaseInputOption; use shirabe_php_shim::PhpMixed; @@ -23,7 +22,7 @@ impl InputOption { description: &str, default: Option<PhpMixed>, // TODO(cli-completion): suggested_values closure / list dropped along with completion support - ) -> Result<Self> { + ) -> anyhow::Result<Self> { let shortcut = shortcut.unwrap_or(PhpMixed::Null); let default_mixed = default.unwrap_or(PhpMixed::Null); let inner = |
