Skip to content

Commit 958a3f0

Browse files
authored
Derive Default for SourceLocation (#402)
1 parent 0d80021 commit 958a3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tokenizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ impl SourcePosition {
545545
}
546546

547547
/// The line and column number for a given position within the input.
548-
#[derive(PartialEq, Eq, Debug, Clone, Copy)]
548+
#[derive(PartialEq, Eq, Debug, Clone, Copy, Default)]
549549
pub struct SourceLocation {
550550
/// The line number, starting at 0 for the first line.
551551
pub line: u32,

0 commit comments

Comments
 (0)