mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
style: Make clippy happy
This commit is contained in:
parent
dd3e1018f8
commit
292418c588
1 changed files with 2 additions and 4 deletions
|
@ -1000,9 +1000,7 @@ impl Entry {
|
|||
.parse_next(input)?;
|
||||
entry.archaic = opt(preceded(space1, archaic)).parse_next(input)?.is_some();
|
||||
entry.note = opt(preceded(space1, note)).parse_next(input)?;
|
||||
entry.description = opt(preceded(space1, description))
|
||||
.parse_next(input)?
|
||||
.map(|d| d.to_owned());
|
||||
entry.description = opt(preceded(space1, description)).parse_next(input)?;
|
||||
|
||||
if opt((winnow::ascii::space0, '|'))
|
||||
.parse_next(input)?
|
||||
|
@ -1019,7 +1017,7 @@ impl Entry {
|
|||
|
||||
fn note(input: &mut &str) -> PResult<String, ()> {
|
||||
let (_, _, note) = (NOTE_PREFIX, space1, description).parse_next(input)?;
|
||||
Ok(note.to_owned())
|
||||
Ok(note)
|
||||
}
|
||||
|
||||
const NOTE_PREFIX: &str = "--";
|
||||
|
|
Loading…
Reference in a new issue