Skip to content

Commit b6a612d

Browse files
committed
fixup! More generic impl of Replacer for closures
Fixed code formatting using rustfmt.
1 parent f73db82 commit b6a612d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/regex/string.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,14 +2375,15 @@ impl<'c, 'h> core::iter::FusedIterator for SubCaptureMatches<'c, 'h> {}
23752375
/// without specifying the closure's return type.
23762376
pub trait GenericFnMut1Arg<Arg>
23772377
where
2378-
Self: FnMut(Arg) -> <Self as GenericFnMut1Arg<Arg>>::Output
2378+
Self: FnMut(Arg) -> <Self as GenericFnMut1Arg<Arg>>::Output,
23792379
{
23802380
/// Return type of the closure.
23812381
type Output;
23822382
}
23832383

23842384
impl<T: ?Sized, Arg, Ret> GenericFnMut1Arg<Arg> for T
2385-
where T: FnMut(Arg) -> Ret,
2385+
where
2386+
T: FnMut(Arg) -> Ret,
23862387
{
23872388
type Output = Ret;
23882389
}

0 commit comments

Comments
 (0)