From bd66f013cf8808cac4b0c3e9134fbc8576d21b9f Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Mon, 5 Aug 2024 09:27:38 +0200 Subject: [PATCH] Have CI report errors --- Cargo.toml | 2 +- src/csl/taxonomy.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f5d0dfad..3f38f2fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ archive = ["ciborium"] csl-json = ["citationberg/json"] [dependencies] -citationberg = { git = "https://github.com/typst/citationberg.git", rev = "ff1b135" } +citationberg = { git = "https://github.com/typst/citationberg.git", rev = "ad52765" } indexmap = { version = "2.0.2", features = ["serde"] } numerals = "0.1.4" paste = "1.0.14" diff --git a/src/csl/taxonomy.rs b/src/csl/taxonomy.rs index e94c083f..2d1cd2fc 100644 --- a/src/csl/taxonomy.rs +++ b/src/csl/taxonomy.rs @@ -764,7 +764,8 @@ impl EntryLike for citationberg::json::Item { { return n .range() - .map(|r| MaybeTyped::Typed(Cow::Owned(Numeric::from(*r.start())))); + .and_then(|r| r.first()) + .map(|r| MaybeTyped::Typed(Cow::Owned(r.clone()))); } } match self.0.get(&variable.to_string())? {