Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Never crash: ops (history) denies panicking shortcuts (#59)

Brandon Thomas2e80c781ee97
diff --git a/crates/ops/src/lib.rs b/crates/ops/src/lib.rs
index ba7aacebf..d9cd1a3a7 100644
--- a/crates/ops/src/lib.rs
+++ b/crates/ops/src/lib.rs
@@ -8,6 +8,7 @@
//! Memory is bounded by `max_states` plus an approximate byte budget. Only tiles *not shared*
//! with the current document count against it.
#![forbid(unsafe_code)]
+#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
use std::collections::{HashSet, VecDeque};
use std::sync::Arc;