From b0e89cd5e31c48a30255c87567d114acdf48a351 Mon Sep 17 00:00:00 2001 From: Gwen Lg <105106246+gwen-lg@users.noreply.github.com> Date: Thu, 19 Jun 2025 00:40:55 +0200 Subject: [PATCH] fix some typos in comment or var name (#1027) indicated by `typos` tool : https://github.com/crate-ci/typos/ --- src/app.rs | 4 ++-- src/clipboard.rs | 2 +- src/operation/recursive.rs | 2 +- src/tab.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app.rs b/src/app.rs index 4d7149b..b4fee3e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -3121,7 +3121,7 @@ impl Application for App { self.complete_operations.insert(id, op); } - // Close progress notification if all relavent operations are finished + // Close progress notification if all relevant operations are finished if !self .pending_operations .iter() @@ -3157,7 +3157,7 @@ impl Application for App { self.failed_operations .insert(id, (op, controller, err.to_string())); } - // Close progress notification if all relavent operations are finished + // Close progress notification if all relevant operations are finished if !self .pending_operations .iter() diff --git a/src/clipboard.rs b/src/clipboard.rs index a61dcb3..62c5bca 100644 --- a/src/clipboard.rs +++ b/src/clipboard.rs @@ -50,7 +50,7 @@ impl ClipboardCopy { if !text_plain.is_empty() { text_plain.push_str(cr_nl); } - //TOOD: what if the path contains CR or NL? + //TODO: what if the path contains CR or NL? text_plain.push_str(path_str); } None => { diff --git a/src/operation/recursive.rs b/src/operation/recursive.rs index 9597275..bc2fdc3 100644 --- a/src/operation/recursive.rs +++ b/src/operation/recursive.rs @@ -291,7 +291,7 @@ impl Op { progress.total_bytes = Some(metadata.len()); (ctx.on_progress)(self, &progress); if let Err(err) = to_file.set_permissions(metadata.permissions()).await { - // This error is not propogated upwards as some filesystems do not support setting permissions + // This error is not propagated upwards as some filesystems do not support setting permissions log::warn!("failed to set permissions for {:?}: {}", self.to, err); } diff --git a/src/tab.rs b/src/tab.rs index 6157304..2911c0a 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -406,12 +406,12 @@ fn time_bag(military_time: bool) -> components::Bag { let mut bag = components::Bag::empty(); bag.hour = Some(components::Numeric::Numeric); bag.minute = Some(components::Numeric::Numeric); - let hour_cyle = if military_time { + let hour_cycle = if military_time { preferences::HourCycle::H23 } else { preferences::HourCycle::H12 }; - bag.preferences = Some(preferences::Bag::from_hour_cycle(hour_cyle)); + bag.preferences = Some(preferences::Bag::from_hour_cycle(hour_cycle)); bag }