From 97ae43b90fe0add9a15e5665050af6abe4069fbe Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sun, 25 Apr 2021 07:38:26 +0200 Subject: [PATCH] Forbid the use of unsafe code This is to avoid us accidentally introducing unsafe code and to make the crate show up in green with `cargo geiger`, see https://github.com/rust-secure-code/cargo-geiger --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 472cc6e..5c24ad6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,6 +67,7 @@ //! [`assert_contains_regex`]: macro.assert_contains_regex.html #![doc(html_root_url = "https://docs.rs/version-sync/0.9.2")] +#![forbid(unsafe_code)] #![deny(missing_docs)] mod contains_regex;