From 84abe288377684a255f6f68cdf51990cecccb471 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 7 Jul 2016 18:24:22 -0700 Subject: [PATCH] Fix rustc warning about unused Write trait. --- src/libcretonne/entities.rs | 2 +- src/libcretonne/types.rs | 2 +- src/libreader/parser.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libcretonne/entities.rs b/src/libcretonne/entities.rs index dcdff9e822..6294a8e8c7 100644 --- a/src/libcretonne/entities.rs +++ b/src/libcretonne/entities.rs @@ -20,7 +20,7 @@ //! format. use std::default::Default; -use std::fmt::{self, Display, Formatter, Write}; +use std::fmt::{self, Display, Formatter}; use std::u32; /// An opaque reference to an extended basic block in a function. diff --git a/src/libcretonne/types.rs b/src/libcretonne/types.rs index 1c44736111..1bc0d0a0b4 100644 --- a/src/libcretonne/types.rs +++ b/src/libcretonne/types.rs @@ -2,7 +2,7 @@ //! Common types for the Cretonne code generator. use std::default::Default; -use std::fmt::{self, Display, Formatter, Write}; +use std::fmt::{self, Display, Formatter}; // ====--------------------------------------------------------------------------------------====// // diff --git a/src/libreader/parser.rs b/src/libreader/parser.rs index cf0efb1ffd..24d46b884d 100644 --- a/src/libreader/parser.rs +++ b/src/libreader/parser.rs @@ -7,7 +7,7 @@ use std::collections::HashMap; use std::result; -use std::fmt::{self, Display, Formatter, Write}; +use std::fmt::{self, Display, Formatter}; use std::str::FromStr; use std::u32; use lexer::{self, Lexer, Token};