From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 13 May 2024 12:25:23 +0000 (+0200) Subject: Fix: remove unnecessary dereference. X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=a1a96f6457624267eef32b2a7b7f79a91d86ee1d;p=rust_exercises.git Fix: remove unnecessary dereference. --- 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)]