aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/config/json_config_source.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-27 03:52:05 +0900
committernsfisis <nsfisis@gmail.com>2026-06-27 04:21:34 +0900
commit2b51554ff59d1e5cbf8dd2db65d278b0202a9102 (patch)
treef4d9b0abf4df9b5e363e3bd65511d70e3d5ada00 /crates/shirabe/src/config/json_config_source.rs
parentcc07b5abb83a40d678401c335bdc49bb81b72c5f (diff)
downloadphp-shirabe-2b51554ff59d1e5cbf8dd2db65d278b0202a9102.tar.gz
php-shirabe-2b51554ff59d1e5cbf8dd2db65d278b0202a9102.tar.zst
php-shirabe-2b51554ff59d1e5cbf8dd2db65d278b0202a9102.zip
refactor: fix compiler warnings and clippy warnings
Diffstat (limited to 'crates/shirabe/src/config/json_config_source.rs')
-rw-r--r--crates/shirabe/src/config/json_config_source.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/src/config/json_config_source.rs b/crates/shirabe/src/config/json_config_source.rs
index 3e0d285..2509239 100644
--- a/crates/shirabe/src/config/json_config_source.rs
+++ b/crates/shirabe/src/config/json_config_source.rs
@@ -5,7 +5,7 @@ use anyhow::Result;
use indexmap::IndexMap;
use shirabe_php_shim::{
PHP_EOL, PhpMixed, RuntimeException, chmod, explode, file_get_contents, file_put_contents,
- implode, is_writable, sprintf,
+ implode, is_writable,
};
use crate::config::ConfigSourceInterface;
@@ -37,7 +37,7 @@ impl JsonConfigSource {
return Err(RuntimeException {
message: format!(
"The file \"{}\" is not writable.",
- self.file.borrow().get_path().to_string(),
+ self.file.borrow().get_path(),
),
code: 0,
}
@@ -48,7 +48,7 @@ impl JsonConfigSource {
return Err(RuntimeException {
message: format!(
"The file \"{}\" is not readable.",
- self.file.borrow().get_path().to_string(),
+ self.file.borrow().get_path(),
),
code: 0,
}
@@ -401,7 +401,7 @@ impl ConfigSourceInterface for JsonConfigSource {
return Err(RuntimeException {
message: format!(
"The referenced repository \"{}\" does not exist.",
- reference_name.to_string(),
+ reference_name,
),
code: 0,
}