Use `let _ = ` to ignore some values that are `#[must_use]` when checking nested data types.
config,
target: args.target(),
};
- ops::fetch(&ws, &opts)?;
+ let _ = ops::fetch(&ws, &opts)?;
Ok(())
}
pub fn package(ws: &Workspace<'_>, opts: &PackageOpts<'_>) -> CargoResult<Option<FileLock>> {
if ws.root().join("Cargo.lock").exists() {
// Make sure the Cargo.lock is up-to-date and valid.
- ops::resolve_ws(ws)?;
+ let _ = ops::resolve_ws(ws)?;
// If Cargo.lock does not exist, it will be generated by `build_lock`
// below, and will be validated during the verification step.
}