From 2b23083455c9b09808a12846948f8773e23c7586 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 22 Mar 2016 07:35:25 +0100 Subject: [PATCH] get rid of some minor warnings --- benches/context_new.rs | 2 +- src/arch/x86/mod.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/benches/context_new.rs b/benches/context_new.rs index 1f81e11..96842eb 100644 --- a/benches/context_new.rs +++ b/benches/context_new.rs @@ -4,7 +4,7 @@ #![feature(test)] extern crate test; extern crate fringe; -use fringe::{Context, Stack}; +use fringe::Context; static mut ctx_slot: *mut Context<'static, SliceStack<'static>> = 0 as *mut Context<_>; static mut stack_buf: [u8; 1024] = [0; 1024]; diff --git a/src/arch/x86/mod.rs b/src/arch/x86/mod.rs index 850f776..40aedaf 100644 --- a/src/arch/x86/mod.rs +++ b/src/arch/x86/mod.rs @@ -8,7 +8,6 @@ use super::common::{push, rust_trampoline}; pub const STACK_ALIGN: usize = 16; -#[allow(raw_pointer_derive)] #[derive(Debug)] pub struct Registers { esp: *mut usize