Skip to content

Commit 82ebdf2

Browse files
committed
fix clippy warnings
1 parent cb85fc7 commit 82ebdf2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/chunk.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ pub(crate) fn split_token_lists(vals: ChunksRef, keyword: &str) -> Vec<Chunks> {
293293
///
294294
/// For Normal Chunks,
295295
/// - The leading/trailing keyword is not considered as a valid split
296-
/// (regardless of whether the keyword is preceded/followed by some
297-
/// whitespace).
296+
/// (regardless of whether the keyword is preceded/followed by some
297+
/// whitespace).
298298
/// - If there are consecutive keywords, the characters between two consecutive
299-
/// keywords (whether only whitespace or not) will be considered as a valid
300-
/// split.
299+
/// keywords (whether only whitespace or not) will be considered as a valid
300+
/// split.
301301
pub(crate) fn split_token_lists_with_kw(vals: ChunksRef, keyword: &str) -> Vec<Chunks> {
302302
let mut out = vec![];
303303
let mut latest = vec![];

src/types/person.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl Person {
5757
let prefix = person.remove("prefix").unwrap_or_default();
5858
let suffix = person.remove("suffix").unwrap_or_default();
5959

60-
return Self { name, given_name, prefix, suffix };
60+
Self { name, given_name, prefix, suffix }
6161
}
6262

6363
fn parse_bibtex(chunks: ChunksRef) -> Self {

0 commit comments

Comments
 (0)