Skip to content

Commit e06b406

Browse files
committed
fix elided lifetime warning
1 parent 09455b4 commit e06b406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/char_counter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct CharCounter<'a>
77

88
impl<'a> CharCounter<'a>
99
{
10-
pub fn new(src: &'a str) -> CharCounter
10+
pub fn new(src: &'a str) -> CharCounter<'a>
1111
{
1212
CharCounter {
1313
src,

0 commit comments

Comments
 (0)