Closed toku-sa-n closed 3 years ago
https://github.com/rust-osdev/uefi-rs/blob/a13ddfedf6532dcd7847fba187b1f64f1311967b/src/table/system.rs#L79-L93
I tried to change &self to &mut self, but it was difficult to fix the test codes.
&self
&mut self
https://github.com/rust-osdev/uefi-rs/blob/a13ddfedf6532dcd7847fba187b1f64f1311967b/uefi-test-runner/src/proto/mod.rs#L5-L17
Here, boot_services() takes an immutable reference to SystemTable while console::test has to take a mutable reference to SystemTable. This causes the conflict of the mutability of references.
boot_services()
SystemTable
console::test
@toku-sa-n I've opened https://github.com/rust-osdev/uefi-rs/pull/240 to attempt to fix this. Does it provide a reasonable solution to prevent multiple mutable references?
https://github.com/rust-osdev/uefi-rs/blob/a13ddfedf6532dcd7847fba187b1f64f1311967b/src/table/system.rs#L79-L93
I tried to change
&self
to&mut self
, but it was difficult to fix the test codes.https://github.com/rust-osdev/uefi-rs/blob/a13ddfedf6532dcd7847fba187b1f64f1311967b/uefi-test-runner/src/proto/mod.rs#L5-L17
Here,
boot_services()
takes an immutable reference toSystemTable
whileconsole::test
has to take a mutable reference toSystemTable
. This causes the conflict of the mutability of references.