I've used rust for a while and i've seen this error many times and still can't figure out the issue. here is where it occurred: self.element.update(self, key::read_key());
this would be perfectly safe imo idk why the borrow checker is buggin.
error[E0499]: cannot borrow `*self.element` as mutable more than once at a time
--> src/lib.rs:84:13
|
84 | self.element.update(self, key::read_key());
| ^^^^^^^^^^^^^------^----^^^^^^^^^^^^^^^^^^
| | | |
| | | first mutable borrow occurs here
| | first borrow later used by call
| second mutable borrow occurs here
error[E0499]: cannot borrow `*self` as mutable more than once at a time
--> src/lib.rs:84:33
|
84 | self.element.update(self, key::read_key());
| ------------ ------ ^^^^ second mutable borrow occurs here
| | |
| | first borrow later used by call
| first mutable borrow occurs here
For more information about this error, try `rustc --explain E0499`.