Skip to content

feat expect warning

Created by: honeywest

warning: use of expect followed by a function call --> src/workspace/mod.rs:55:18 | 55 | .expect(&format!( | __________________^ 56 | | "Package '{}' is a member and should be in the packages list", 57 | | package_id 58 | | )); | |__________________^ help: try this: unwrap_or_else(|| panic!("Package '{}' is a member and should be in the packages list", package_id)) | = note: #[warn(clippy::expect_fun_call)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call

Merge request reports