Disallow unsafe code in net and net_traits.

This commit is contained in:
Ms2ger 2016-03-14 15:24:00 +01:00
parent ce2da28a00
commit e8db43ce50
4 changed files with 40 additions and 14 deletions

View file

@ -2,6 +2,8 @@
* 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;

View file

@ -11,6 +11,8 @@
#![feature(custom_attribute)]
#![plugin(heapsize_plugin, serde_macros)]
#![deny(unsafe_code)]
extern crate heapsize;
extern crate hyper;
extern crate image as piston_image;