cargo clippy --workspace --tests --all-targets --all-features -- \
-D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
+cargo clippy --workspace -- \
+ -D clippy::unwrap_used
./scripts/update_config_defaults.sh
git add config/defaults.hjson
return false;
}
if let Some(val) = request.headers.get("Content-Type") {
- return val.to_str().unwrap().starts_with("application/");
+ return val
+ .to_str()
+ .expect("Content-Type header contains non-ascii chars.")
+ .starts_with("application/");
}
false
}