Fix: remove unnecessary dereference.
authorLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Mon, 13 May 2024 12:25:23 +0000 (14:25 +0200)
committerLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Mon, 13 May 2024 13:20:49 +0000 (15:20 +0200)
exercises/06_ticket_management/16_btreemap/src/lib.rs
exercises/07_threads/00_intro/src/lib.rs

index 5235193..d9af95d 100644 (file)
@@ -124,7 +124,7 @@ mod tests {
             assert_eq!(ticket.status, Status::InProgress);
         }
 
-        let ids: Vec<TicketId> = (&store).into_iter().map(|t| *t.id).collect();
+        let ids: Vec<TicketId> = (&store).into_iter().map(|t| t.id).collect();
         let sorted_ids = {
             let mut v = ids.clone();
             v.sort();
index a3cd7a0..df6490d 100644 (file)
@@ -1,6 +1,6 @@
 fn intro() -> &'static str {
     // TODO: fix me ðŸ‘‡
-    "I'm ready to __!"
+    "I'm ready to _!"
 }
 
 #[cfg(test)]