cargo fix --edition-idioms

This commit is contained in:
Nick Mathewson 2020-12-29 14:56:48 -05:00
parent 2e5f694503
commit df55817473
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ mod test {
#[test]
fn parse_command() -> Result<()> {
use DiffCommand::*;
fn parse(s: &str) -> Result<DiffCommand> {
fn parse(s: &str) -> Result<DiffCommand<'_>> {
let mut iter = s.lines();
let cmd = DiffCommand::from_line_iterator(&mut iter)?;
let cmd2 = DiffCommand::from_line_iterator(&mut iter)?;