From a1a96f6457624267eef32b2a7b7f79a91d86ee1d Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 13 May 2024 14:25:23 +0200 Subject: [PATCH] Fix: remove unnecessary dereference. --- exercises/06_ticket_management/16_btreemap/src/lib.rs | 2 +- exercises/07_threads/00_intro/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/06_ticket_management/16_btreemap/src/lib.rs b/exercises/06_ticket_management/16_btreemap/src/lib.rs index 5235193..d9af95d 100644 --- a/exercises/06_ticket_management/16_btreemap/src/lib.rs +++ b/exercises/06_ticket_management/16_btreemap/src/lib.rs @@ -124,7 +124,7 @@ mod tests { assert_eq!(ticket.status, Status::InProgress); } - let ids: Vec = (&store).into_iter().map(|t| *t.id).collect(); + let ids: Vec = (&store).into_iter().map(|t| t.id).collect(); let sorted_ids = { let mut v = ids.clone(); v.sort(); diff --git a/exercises/07_threads/00_intro/src/lib.rs b/exercises/07_threads/00_intro/src/lib.rs index a3cd7a0..df6490d 100644 --- a/exercises/07_threads/00_intro/src/lib.rs +++ b/exercises/07_threads/00_intro/src/lib.rs @@ -1,6 +1,6 @@ fn intro() -> &'static str { // TODO: fix me 👇 - "I'm ready to __!" + "I'm ready to _!" } #[cfg(test)] -- 2.45.2