Skip to contentSlop Block

no-unwrap

Error

Propagate errors with ?. Code under #[cfg(test)] and in tests/ may unwrap.

fn run() {	let value = load().unwrap();Replace unwrap() with ?}
// ast-grep-ignore: no-unwrap-rust

How to fix

Convert the error into the crate's error type when needed. Code under #[cfg(test)] and in tests/ may unwrap.