Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Fetch: crate root forbids unsafe and denies panicking lints, like every other crate

Brandon Thomasf0632e70224b
diff --git a/crates/fetch/src/lib.rs b/crates/fetch/src/lib.rs
index b13d4c343..499a6eda3 100644
--- a/crates/fetch/src/lib.rs
+++ b/crates/fetch/src/lib.rs
@@ -16,6 +16,8 @@
//! Native only: on wasm32 this crate is empty (the web build downloads no models).
#![cfg(not(target_arch = "wasm32"))]
+#![forbid(unsafe_code)]
+#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
pub mod http;