dsn: count lines from 1, not 0

This commit is contained in:
Mikolaj Wielgus 2024-03-04 10:49:22 +00:00
parent aa40c80d82
commit 803d8edf94
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ impl<'de> Deserializer<'de> {
pub fn from_str(input: &'de str) -> Self { pub fn from_str(input: &'de str) -> Self {
Self { Self {
input, input,
context: DsnContext { line: 0, column: 0 }, context: DsnContext { line: 1, column: 0 },
string_quote: None, string_quote: None,
space_in_quoted_tokens: false, space_in_quoted_tokens: false,