mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-08-04 18:58:31 +00:00
Fix clippy warnings
This commit is contained in:
parent
ec5bc17d3b
commit
f3b57a1e6b
4 changed files with 7 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,4 +3,3 @@ target/
|
|||
/.idea
|
||||
tarpaulin-report.html
|
||||
crates/**/Cargo.lock
|
||||
crates/texlab_citeproc/src/name/parser.rs
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
fn main() {
|
||||
lalrpop::Configuration::new()
|
||||
.generate_in_source_tree()
|
||||
.process()
|
||||
.unwrap();
|
||||
lalrpop::process_root().unwrap();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Ported from: https://github.com/michel-kraemer/citeproc-java/blob/master/citeproc-java/grammars/InternalName.g4
|
||||
// Michel Kraemer
|
||||
// Apache License 2.0
|
||||
mod parser;
|
||||
mod parser {
|
||||
#![allow(warnings)]
|
||||
include!(concat!(env!("OUT_DIR"), "/name/parser.rs"));
|
||||
}
|
||||
|
||||
use self::parser::NamesParser;
|
||||
use citeproc_io::Name;
|
||||
|
|
|
@ -226,8 +226,8 @@ impl RisLibrary {
|
|||
continue;
|
||||
}
|
||||
|
||||
let key: String = (&chars[..2]).into_iter().collect();
|
||||
let value: String = (&chars[6..]).into_iter().collect();
|
||||
let key: String = (&chars[..2]).iter().collect();
|
||||
let value: String = (&chars[6..]).iter().collect();
|
||||
match key.to_uppercase().as_str() {
|
||||
"TY" => reference.ty = RisType::parse(&value),
|
||||
"A2" => reference.editors.push(value),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue