Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Forbid unsafe code in Cargo.toml

Maximilian Roos3984d9f11eac
diff --git a/Cargo.toml b/Cargo.toml
index ac1a669a4..165d4a210 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -57,3 +57,6 @@ harness = false
[[bench]]
name = "list"
harness = false
+
+[lints.rust]
+unsafe_code = "forbid"
diff --git a/src/config.rs b/src/config.rs
index fc036037e..4be00e18e 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -4,7 +4,7 @@ use std::path::PathBuf;
use toml;
#[cfg(not(test))]
-use etcetera::base_strategy::choose_base_strategy;
+use etcetera::base_strategy::{BaseStrategy, choose_base_strategy};
/// Configuration for worktree path formatting and LLM integration.
///
diff --git a/src/main.rs b/src/main.rs
index 1706846ca..88afb9b47 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -361,3 +361,6 @@ fn main() {
}
}
// test change
+fn main() {
+ unsafe { }
+}