Closed
Description
Here is the compile error message:
cargo test
Compiling zmrequest v0.1.0 (file:///H:/work/rust_projects/zmrequest)
error[E0499]: cannot borrow `self._cookies` as mutable more than once at a time
--> src\cookiejar.rs:104:17
|
98 | match self._cookies.get_mut(host)
| ------------- first mutable borrow occurs here
...
104 | self._cookies.insert(host.to_owned(),m);
| ^^^^^^^^^^^^^ second mutable borrow occurs here
105 | }
106 | }
| - first borrow ends here
error[E0499]: cannot borrow `self._cookies` as mutable more than once at a time
--> src\cookiejar.rs:104:17
|
98 | match self._cookies.get_mut(host)
| ------------- first mutable borrow occurs here
...
104 | self._cookies.insert(host.to_owned(),m);
| ^^^^^^^^^^^^^ second mutable borrow occurs here
105 | }
106 | }
| - first borrow ends here
error: aborting due to previous error
error: aborting due to previous error
If you want more information on this error, try using "rustc --explain If you want more information on this error, try using "rustc --explain E0499E0499"
"
error: Could not compile `zmrequest`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `zmrequest`.
To learn more, run the command again with --verbose.
Rust version:
rustup show
Default host: x86_64-pc-windows-gnu
installed toolchains
--------------------
nightly-i686-pc-windows-gnu (default)
nightly-i686-pc-windows-msvc
active toolchain
----------------
nightly-i686-pc-windows-gnu (default)
rustc 1.26.0-nightly (3eeb5a665 2018-03-01)