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,