Skip to content

Conversation

@sebpuetz
Copy link
Contributor

Fixes a compiler warning.

rust-lang/rust#59159

warning: cannot borrow `*self.inner` as mutable because it is also borrowed as immutable
   --> src/graph.rs:491:30
    |
483 |           match self
    |  _______________-
484 | |             .inner
    | |__________________- immutable borrow occurs here
...
491 |                   let weight = self.inner.remove_edge(edge.id());
    |                                ^^^^^^^^^^             ---- immutable borrow later used here
    |                                |
    |                                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 <https://github.com/rust-lang/rust/issues/59159>

@danieldk danieldk merged commit b61ce0e into danieldk:master May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants