From 748e741f740ac46ec40e42679aba3b07927709c0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 15:08:03 +0900 Subject: chore: cargo clippy --fix --- .../src/symfony/component/filesystem/filesystem.rs | 79 ++++++++++++---------- 1 file changed, 45 insertions(+), 34 deletions(-) (limited to 'crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs') diff --git a/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs b/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs index ef48c3d..522309e 100644 --- a/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs +++ b/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs @@ -3,6 +3,12 @@ use shirabe_php_shim::PhpMixed; #[derive(Debug, Clone)] pub struct Filesystem; +impl Default for Filesystem { + fn default() -> Self { + Self::new() + } +} + impl Filesystem { pub fn new() -> Self { todo!() @@ -10,117 +16,122 @@ impl Filesystem { pub fn copy( &self, - origin_file: &str, - target_file: &str, - override_file: bool, + _origin_file: &str, + _target_file: &str, + _override_file: bool, ) -> anyhow::Result<()> { todo!() } - pub fn mkdir(&self, dirs: PhpMixed, mode: u32) -> anyhow::Result<()> { + pub fn mkdir(&self, _dirs: PhpMixed, _mode: u32) -> anyhow::Result<()> { todo!() } - pub fn exists(&self, files: PhpMixed) -> bool { + pub fn exists(&self, _files: PhpMixed) -> bool { todo!() } pub fn touch( &self, - files: PhpMixed, - time: Option, - atime: Option, + _files: PhpMixed, + _time: Option, + _atime: Option, ) -> anyhow::Result<()> { todo!() } - pub fn remove(&self, files: PhpMixed) -> anyhow::Result<()> { + pub fn remove(&self, _files: PhpMixed) -> anyhow::Result<()> { todo!() } pub fn chmod( &self, - files: PhpMixed, - mode: u32, - umask: u32, - recursive: bool, + _files: PhpMixed, + _mode: u32, + _umask: u32, + _recursive: bool, ) -> anyhow::Result<()> { todo!() } - pub fn chown(&self, files: PhpMixed, user: PhpMixed, recursive: bool) -> anyhow::Result<()> { + pub fn chown(&self, _files: PhpMixed, _user: PhpMixed, _recursive: bool) -> anyhow::Result<()> { todo!() } - pub fn chgrp(&self, files: PhpMixed, group: PhpMixed, recursive: bool) -> anyhow::Result<()> { + pub fn chgrp( + &self, + _files: PhpMixed, + _group: PhpMixed, + _recursive: bool, + ) -> anyhow::Result<()> { todo!() } - pub fn rename(&self, origin: &str, target: &str, override_file: bool) -> anyhow::Result<()> { + pub fn rename(&self, _origin: &str, _target: &str, _override_file: bool) -> anyhow::Result<()> { todo!() } pub fn symlink( &self, - origin_dir: &str, - target_dir: &str, - copy_on_windows: bool, + _origin_dir: &str, + _target_dir: &str, + _copy_on_windows: bool, ) -> anyhow::Result<()> { todo!() } - pub fn hard_link(&self, origin_file: &str, target_files: PhpMixed) -> anyhow::Result<()> { + pub fn hard_link(&self, _origin_file: &str, _target_files: PhpMixed) -> anyhow::Result<()> { todo!() } - pub fn read_link(&self, path: &str) -> String { + pub fn read_link(&self, _path: &str) -> String { todo!() } - pub fn make_path_relative(&self, end_path: &str, start_path: &str) -> String { + pub fn make_path_relative(&self, _end_path: &str, _start_path: &str) -> String { todo!() } pub fn mirror( &self, - origin_dir: &str, - target_dir: &str, - iterator: Option, - options: &indexmap::IndexMap, + _origin_dir: &str, + _target_dir: &str, + _iterator: Option, + _options: &indexmap::IndexMap, ) -> anyhow::Result<()> { todo!() } - pub fn is_absolute_path(&self, file: &str) -> bool { + pub fn is_absolute_path(&self, _file: &str) -> bool { todo!() } - pub fn dump_file(&self, filename: &str, content: &str) -> anyhow::Result<()> { + pub fn dump_file(&self, _filename: &str, _content: &str) -> anyhow::Result<()> { todo!() } - pub fn append_to_file(&self, filename: &str, content: &str) -> anyhow::Result<()> { + pub fn append_to_file(&self, _filename: &str, _content: &str) -> anyhow::Result<()> { todo!() } - pub fn temp_nam(&self, dir: &str, prefix: &str) -> anyhow::Result { + pub fn temp_nam(&self, _dir: &str, _prefix: &str) -> anyhow::Result { todo!() } // Static-style helper methods used in the ported codebase - pub fn is_readable(path: &str) -> bool { + pub fn is_readable(_path: &str) -> bool { todo!() } - pub fn is_local_path(path: &str) -> bool { + pub fn is_local_path(_path: &str) -> bool { todo!() } - pub fn trim_trailing_slash(path: &str) -> String { + pub fn trim_trailing_slash(_path: &str) -> String { todo!() } - pub fn get_platform_path(path: &str) -> String { + pub fn get_platform_path(_path: &str) -> String { todo!() } } -- cgit v1.3.1