From 803d8edf94e7c3e77b19113e668a0d8cd8ca105f Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Mon, 4 Mar 2024 10:49:22 +0000 Subject: [PATCH] dsn: count lines from 1, not 0 --- src/dsn/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsn/de.rs b/src/dsn/de.rs index f058a1f..80df094 100644 --- a/src/dsn/de.rs +++ b/src/dsn/de.rs @@ -68,7 +68,7 @@ impl<'de> Deserializer<'de> { pub fn from_str(input: &'de str) -> Self { Self { input, - context: DsnContext { line: 0, column: 0 }, + context: DsnContext { line: 1, column: 0 }, string_quote: None, space_in_quoted_tokens: false,