mirror of
https://github.com/typst/typst
synced 2025-08-25 20:24:14 +08:00
Update bails into the right shape
This commit is contained in:
parent
cb3844f617
commit
9724479412
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user