Skip to content

clippy error - 2020-07-20 #11

@rarewin

Description

@rarewin

https://github.com/rarewin/rust-coreutils/actions/runs/155589096

19 | |         .value_of("wrap")
20 | |         .ok_or_else(|| Base64Error::InvalidParam("--wrap".to_string()))?
21 | |         .parse::<usize>()
22 | |         .or_else(|_| Err(Error::new(Base64Error::InvalidParam("--wrap".to_string()))))?;
   | |______________________________________________________________________________________^
   |
   = note: `-D clippy::bind-instead-of-map` implied by `-D warnings`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
help: try this
   |
18 |     let wrap = m
19 |         .value_of("wrap")
20 |         .ok_or_else(|| Base64Error::InvalidParam("--wrap".to_string()))?
21 |         .parse::<usize>().map_err(|_| Error::new(Base64Error::InvalidParam("--wrap".to_string())))?;
   |

error: aborting due to previous error
##[error]aborting due to previous error
error: could not compile `rust-coreutils`.
##[error]could not compile `rust-coreutils`.
To learn more, run the command again with --verbose.
##[error]The process '/usr/share/rust/.cargo/bin/cargo' failed with exit code 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions