Skip to content

Commit 55d9448

Browse files
hyperpolymathclaude
andcommitted
chore: add #![forbid(unsafe_code)] to safe Rust crates
Adds the forbid(unsafe_code) crate-level attribute to all Rust crates that do not use unsafe code, hardening the safety guarantee at compile time. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0891763 commit 55d9448

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

overlay-daemon/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//! Monitors rclone mount status and provides sync state to file managers
55
//! via D-Bus and GIO emblems.
66
7+
#![forbid(unsafe_code)]
78
use serde::{Deserialize, Serialize};
89
use std::collections::HashMap;
910
use std::path::PathBuf;

tray-daemon/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
//! Displays sync status in system tray with menu for common actions.
55
6+
#![forbid(unsafe_code)]
67
use muda::{Menu, MenuEvent, MenuItem, PredefinedMenuItem, Submenu};
78
use notify_rust::Notification;
89
use serde::Deserialize;

0 commit comments

Comments
 (0)