diff options
| author | Teddy Wing | 2018-11-02 04:38:38 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-11-02 04:38:38 +0100 |
| commit | 75d52e385fa66d6e151c9baa2cf22c2223c39ff0 (patch) | |
| tree | aa80def97b6355338799818ab8353bdb3c44e8f2 /.gitmodules | |
| parent | e4c21b11069297d289f25834cfc3c001a4604b5f (diff) | |
| download | dome-key-map-75d52e385fa66d6e151c9baa2cf22c2223c39ff0.tar.bz2 | |
MapAction::parse(): Try to return a `Result` (WIP)
Want to be able to return a `Result` here so we can print the error from
the `ffi` module so we don't have to permit 'stderrlog' on this parser
module.
Beset with errors like this:
error[E0506]: cannot assign to `self.action` because it is borrowed
--> src/parser.rs:188:21
|
176 | Action::String(ref s) => {
| ----- borrow of `self.action` occurs here
...
188 | self.action = action;
| ^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `self.action` occurs here
error: aborting due to previous error
Even cloning the `Action` doesn't work because the Combine error
`Result` needs an `&str` reference to the parser input, and if we
reassign `self.action`, that string reference would disappear.
Need to figure out a different way of dealing with this, but I at least
want to commit what I have because the next step is going to be
something different.
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions
