Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warning. #15

Merged
merged 1 commit into from
May 29, 2019
Merged

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