From 1c65ce8f369b718396f4d841db67d9c81a4cf217 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 4 Jun 2016 18:07:16 +0200 Subject: [PATCH] Deny unsafe code in some more modules. --- components/net_traits/hosts.rs | 2 -- components/style/selector_matching.rs | 3 --- components/util/lib.rs | 2 -- 3 files changed, 7 deletions(-) diff --git a/components/net_traits/hosts.rs b/components/net_traits/hosts.rs index dc06d94529b..b03bf16100c 100644 --- a/components/net_traits/hosts.rs +++ b/components/net_traits/hosts.rs @@ -2,8 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#![allow(unsafe_code)] - use std::collections::HashMap; use std::env; use std::fs::File; diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs index c479c5ef5d5..79f590f5482 100644 --- a/components/style/selector_matching.rs +++ b/components/style/selector_matching.rs @@ -2,9 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// For lazy_static -#![allow(unsafe_code)] - use dom::PresentationalHintsSynthetizer; use element_state::*; use error_reporting::StdoutErrorReporter; diff --git a/components/util/lib.rs b/components/util/lib.rs index 9407b18a87b..7b7ad32811c 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -54,10 +54,8 @@ pub mod linked_list; #[allow(unsafe_code)] pub mod opts; pub mod panicking; -#[allow(unsafe_code)] pub mod prefs; pub mod print_tree; -#[allow(unsafe_code)] pub mod resource_files; #[allow(unsafe_code)] pub mod str;