Skip to content

Commit 5572e16

Browse files
Y-RyuZUclaude
andcommitted
fix: apply Rust formatting
- Applied cargo fmt to fix formatting issues in filesystem.rs and logging.rs - Fixed multi-line closure formatting - Fixed function parameter formatting Co-Authored-By: Claude <[email protected]>
1 parent 08d9fbf commit 5572e16

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src-tauri/src/filesystem.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ pub async fn get_files_with_extension(
383383

384384
// Check if the file has the specified extension
385385
if entry_path.is_file()
386-
&& entry_path.extension().is_some_and(|ext| {
387-
ext.to_string_lossy() == extension.trim_start_matches('.')
388-
})
386+
&& entry_path
387+
.extension()
388+
.is_some_and(|ext| ext.to_string_lossy() == extension.trim_start_matches('.'))
389389
{
390390
if let Some(path_str) = entry_path.to_str() {
391391
files.push(path_str.to_string());

src-tauri/src/logging.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,7 @@ pub struct FileProgressInfo {
461461

462462
/// Log individual file progress with detailed status
463463
#[tauri::command]
464-
pub fn log_file_progress(
465-
info: FileProgressInfo,
466-
logger: tauri::State<Arc<AppLogger>>,
467-
) {
464+
pub fn log_file_progress(info: FileProgressInfo, logger: tauri::State<Arc<AppLogger>>) {
468465
let FileProgressInfo {
469466
file_name,
470467
file_index,

0 commit comments

Comments
 (0)