aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/silencer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/silencer.rs')
-rw-r--r--crates/shirabe/src/util/silencer.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/shirabe/src/util/silencer.rs b/crates/shirabe/src/util/silencer.rs
index f5ee64d..7286689 100644
--- a/crates/shirabe/src/util/silencer.rs
+++ b/crates/shirabe/src/util/silencer.rs
@@ -1,6 +1,5 @@
//! ref: composer/src/Composer/Util/Silencer.php
-use anyhow::Result;
use shirabe_php_shim::{
E_DEPRECATED, E_NOTICE, E_USER_DEPRECATED, E_USER_NOTICE, E_USER_WARNING, E_WARNING,
error_reporting,
@@ -36,9 +35,9 @@ impl Silencer {
}
}
- pub fn call<F, T>(callable: F) -> Result<T>
+ pub fn call<F, T>(callable: F) -> anyhow::Result<T>
where
- F: FnOnce() -> Result<T>,
+ F: FnOnce() -> anyhow::Result<T>,
{
Self::suppress(None);
match callable() {