aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/cursor.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-04-23 00:14:02 +0200
committerJosh Matthews <josh@joshmatthews.net>2015-05-05 10:07:34 -0400
commitef8edd4e87aeb3cc71dfd9da2f69437080f5410e (patch)
tree9146cdd7126ead59c57cacbaa04eda0f16761f65 /components/util/cursor.rs
parent7b87085c1880c60aa3be5b3ec4572a0d93fd5537 (diff)
downloadservo-ef8edd4e87aeb3cc71dfd9da2f69437080f5410e.tar.gz
servo-ef8edd4e87aeb3cc71dfd9da2f69437080f5410e.zip
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
Diffstat (limited to 'components/util/cursor.rs')
-rw-r--r--components/util/cursor.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/util/cursor.rs b/components/util/cursor.rs
index 4c6b61b38fe..622845deaa7 100644
--- a/components/util/cursor.rs
+++ b/components/util/cursor.rs
@@ -6,11 +6,10 @@
use cssparser::ToCss;
use std::ascii::AsciiExt;
-use text_writer::TextWriter;
macro_rules! define_cursor {
($( $css: expr => $variant: ident = $value: expr, )+) => {
- #[derive(Clone, Copy, PartialEq, Eq, FromPrimitive, Debug)]
+ #[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[repr(u8)]
pub enum Cursor {
$( $variant = $value ),+
@@ -26,7 +25,7 @@ macro_rules! define_cursor {
}
impl ToCss for Cursor {
- fn to_css<W>(&self, dest: &mut W) -> ::text_writer::Result where W: TextWriter {
+ fn to_css<W>(&self, dest: &mut W) -> ::std::fmt::Result where W: ::std::fmt::Write {
match self {
$( &Cursor::$variant => dest.write_str($css) ),+
}