Skip to content

Commit

Permalink
Changing empty appointments history message + removing clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsmyrnk committed Jun 28, 2024
1 parent f137164 commit cd26dc6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion todayiwill/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ assert_cmd = "2.0.14"
cargo-llvm-cov = "0.6.10"
chrono = "0.4.38"
clap = { version = "4.5.7", features = ["derive"] }
clippy = "0.0.302"
dirs = "5.0.1"
serial_test = "3.1.1"
2 changes: 1 addition & 1 deletion todayiwill/src/appointment/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn display_all_from(date: NaiveDate, config: Config) {
let mut appointments =
get_appointments_from_file(&(config.appointment_file_path_builder)(date));
if appointments.is_empty() {
println!("There are no appointments added this day.");
println!("There were no appointments added in this day.");
return;
}
appointments.sort();
Expand Down
2 changes: 1 addition & 1 deletion todayiwill/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ fn appointment_history() {
.args(["history", "--date", "01/01/2024"])
.assert()
.success()
.stdout("There are no appointments added this day.\n");
.stdout("There were no appointments added in this day.\n");

common::helper_write_to_appointment_data_file(
b"13:12 An appointment added on 01/01/2024",
Expand Down

0 comments on commit cd26dc6

Please sign in to comment.