Update bails into the right shape

This commit is contained in:
Said Aroua 2025-06-13 23:53:03 +02:00
parent cb3844f617
commit 9724479412

View File

@ -323,12 +323,14 @@ impl Bibliography {
for entry in library { for entry in library {
let key = entry.key(); let key = entry.key();
if key.is_empty() { if key.is_empty() {
bail!("bibliography key must not be empty"); bail!(Span::detached(), "bibliography key must not be empty");
} }
let label = match Label::new(PicoStr::intern(key)) { let label = match Label::new(PicoStr::intern(key)) {
Some(lbl) => lbl, Some(lbl) => lbl,
None => bail!("unexpected error while creating a label"), None => {
bail!(Span::detached(), "unexpected error while creating a label")
}
}; };
match map.entry(label) { match map.entry(label) {