Apply more suggestions.

This commit is contained in:
Tom Alexander
2023-10-16 17:03:16 -04:00
parent 4ba0e3611b
commit 2dd5246506
9 changed files with 28 additions and 38 deletions

View File

@@ -43,7 +43,7 @@ pub(crate) fn target<'b, 'g, 'r, 's>(
.expect("We cannot be at the start of the file because we are inside a target.");
if preceding_character.is_whitespace() {
return Err(nom::Err::Error(CustomError::MyError(MyError(
"Targets cannot end with whitespace.".into(),
"Targets cannot end with whitespace.",
))));
}
let (remaining, _) = tag(">>")(remaining)?;