From 704d4e19aee9a0ca99065738d981d274be0e7c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Naz=C4=B1m=20Can=20Alt=C4=B1nova?= Date: Sun, 23 Jul 2017 00:08:56 -0700 Subject: [PATCH] Derive Default for SourceLocation --- Cargo.toml | 2 +- src/tokenizer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index eba9e089..caf109ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cssparser" -version = "0.17.0" +version = "0.17.1" authors = [ "Simon Sapin " ] description = "Rust implementation of CSS Syntax Level 3" diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 2244e253..f4c07792 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -395,7 +395,7 @@ pub struct SourcePosition(usize); /// The line and column number for a given position within the input. -#[derive(PartialEq, Eq, Debug, Clone, Copy)] +#[derive(PartialEq, Eq, Debug, Clone, Copy, Default)] pub struct SourceLocation { /// The line number, starting at 0 for the first line. pub line: u32,