From 5be2a1db8e29ca0d9d6d8c67c99ece5d726bed23 Mon Sep 17 00:00:00 2001 From: pompydev Date: Tue, 3 Jun 2025 16:17:54 +0900 Subject: [PATCH] bump rust edition 2021 -> 2024 --- Cargo.toml | 4 ++-- src/bin/boo.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 88b7dc2..547ebb1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "sudo-boo" description = "A program that scare users when running with root permission" -version = "1.0.2" -edition = "2021" +version = "1.0.3" +edition = "2024" license-file = "LICENSE" keywords = ["boo"] categories = ["command-line-utilities"] diff --git a/src/bin/boo.rs b/src/bin/boo.rs index cfb91ef..ac79141 100644 --- a/src/bin/boo.rs +++ b/src/bin/boo.rs @@ -1,5 +1,5 @@ #[link(name = "c")] -extern "C" { +unsafe extern "C" { fn getuid() -> u32; fn geteuid() -> u32; }