Fix formatting and clippy issues

This commit is contained in:
Sam Mohr 2024-08-14 19:48:38 -07:00
parent 49f5ea88fc
commit 28ceb0e93f
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
3 changed files with 78 additions and 55 deletions

View file

@ -96,7 +96,7 @@ pub struct Run {
stdin_vals: Vec<&'static str>,
}
impl<'run> Run {
impl Run {
pub fn new<S>(exe: S) -> Self
where
S: AsRef<OsStr>,
@ -189,7 +189,7 @@ impl<'run> Run {
where
I: IntoIterator<Item = &'static str>,
{
self.stdin_vals.extend(stdin_vals.into_iter());
self.stdin_vals.extend(stdin_vals);
self
}