aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/self_update
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/self_update')
-rw-r--r--crates/shirabe/src/self_update/keys.rs3
1 files changed, 1 insertions, 2 deletions
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<String> {
+ pub fn fingerprint(path: &str) -> anyhow::Result<String> {
let content = std::fs::read_to_string(path)?;
let re = Regex::new(r"\s").unwrap();
let cleaned = re.replace_all(&content, "");