diff --git a/src/librustdoc/stability_summary.rs b/src/librustdoc/stability_summary.rs index 058d8b81f7a..7ec59f0139d 100644 --- a/src/librustdoc/stability_summary.rs +++ b/src/librustdoc/stability_summary.rs @@ -19,7 +19,7 @@ use std::num::Zero; use syntax::attr::{Deprecated, Experimental, Unstable, Stable, Frozen, Locked}; use syntax::ast::Public; -use clean::{Crate, Item, ModuleItem, Module, StructItem, Struct, EnumItem, Enum}; +use clean::{Crate, Item, ModuleItem, Module, EnumItem, Enum}; use clean::{ImplItem, Impl, Trait, TraitItem, TraitMethod, ProvidedMethod, RequiredMethod}; use clean::{TypeTraitItem, ViewItemItem, PrimitiveItem, Stability}; diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs index d71bab0b48f..5b5bb618151 100644 --- a/src/libstd/io/process.rs +++ b/src/libstd/io/process.rs @@ -1190,7 +1190,7 @@ mod tests { Path::new("/dev/null") }; - let mut fdes = match fs::open(&path, Truncate, Write) { + let fdes = match fs::open(&path, Truncate, Write) { Ok(f) => f, Err(_) => panic!("failed to open file descriptor"), };