diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 892d10ae..1c85e10a 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -545,7 +545,7 @@ impl SourcePosition { } /// 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,