Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve mutable_borrow_reservation_conflict warning
warning: cannot borrow `*set` as mutable because it is also borrowed as immutable --> src/main.rs:451:13 | 450 | if let Some(first) = set.iter().next() { | ---------- immutable borrow occurs here 451 | / set.insert(Star { 452 | | time: first.time - Duration::seconds(1), | | ---------- immutable borrow later used here 453 | | node: Default::default(), 454 | | }); | |______________^ mutable borrow occurs here | = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future = note: for more information, see issue #59159 <rust-lang/rust#59159>
- Loading branch information