From b77c442f562cfeae3c9ef392e8aee8849b36715d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 17 Jun 2022 01:49:06 +0200 Subject: [PATCH] Forbid unsafe code --- src/grm/main.rs | 2 ++ src/lib.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/grm/main.rs b/src/grm/main.rs index 5972102..2c46f11 100644 --- a/src/grm/main.rs +++ b/src/grm/main.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] + use std::path::Path; use std::process; diff --git a/src/lib.rs b/src/lib.rs index 7cbf992..d406b95 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ #![feature(io_error_more)] #![feature(const_option_ext)] +#![forbid(unsafe_code)] use std::path::Path;