Skip to content

Commit 1396651

Browse files
committed
Avoid unneeded explicit lifetimes
1 parent ce305e8 commit 1396651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub struct Format<'a, I> {
2828
inner: RefCell<Option<I>>,
2929
}
3030

31-
pub fn new_format<'a, I, F>(iter: I, separator: &'a str, f: F) -> FormatWith<'a, I, F>
31+
pub fn new_format<I, F>(iter: I, separator: &str, f: F) -> FormatWith<'_, I, F>
3232
where I: Iterator,
3333
F: FnMut(I::Item, &mut dyn FnMut(&dyn fmt::Display) -> fmt::Result) -> fmt::Result
3434
{
@@ -38,7 +38,7 @@ pub fn new_format<'a, I, F>(iter: I, separator: &'a str, f: F) -> FormatWith<'a,
3838
}
3939
}
4040

41-
pub fn new_format_default<'a, I>(iter: I, separator: &'a str) -> Format<'a, I>
41+
pub fn new_format_default<I>(iter: I, separator: &str) -> Format<'_, I>
4242
where I: Iterator,
4343
{
4444
Format {

0 commit comments

Comments
 (0)