mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Unreachable pattern (#501)
This commit is contained in:
parent
90e7d18f26
commit
9eb6174b22
@ -74,7 +74,6 @@ pub struct BibliographyElem {
|
|||||||
pub style: BibliographyStyle,
|
pub style: BibliographyStyle,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// A list of bib file paths.
|
/// A list of bib file paths.
|
||||||
#[derive(Debug, Default, Clone, Hash)]
|
#[derive(Debug, Default, Clone, Hash)]
|
||||||
pub struct BibPaths(Vec<EcoString>);
|
pub struct BibPaths(Vec<EcoString>);
|
||||||
@ -89,7 +88,6 @@ cast_to_value! {
|
|||||||
v: BibPaths => v.0.into()
|
v: BibPaths => v.0.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl BibliographyElem {
|
impl BibliographyElem {
|
||||||
/// Find the document's bibliography.
|
/// Find the document's bibliography.
|
||||||
pub fn find(introspector: Tracked<Introspector>) -> StrResult<Self> {
|
pub fn find(introspector: Tracked<Introspector>) -> StrResult<Self> {
|
||||||
@ -204,7 +202,6 @@ impl LocalName for BibliographyElem {
|
|||||||
match lang {
|
match lang {
|
||||||
Lang::GERMAN | Lang::FRENCH => "Bibliographie",
|
Lang::GERMAN | Lang::FRENCH => "Bibliographie",
|
||||||
Lang::CHINESE => "参考文献",
|
Lang::CHINESE => "参考文献",
|
||||||
Lang::GERMAN => "Bibliographie",
|
|
||||||
Lang::ITALIAN => "Bibliografia",
|
Lang::ITALIAN => "Bibliografia",
|
||||||
Lang::RUSSIAN => "Библиография",
|
Lang::RUSSIAN => "Библиография",
|
||||||
Lang::ENGLISH | _ => "Bibliography",
|
Lang::ENGLISH | _ => "Bibliography",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user