Skip to content

Commit a67a542

Browse files
Merge pull request jedrzejboczar#1 from Escapingbug/master
fix compiltion problem
2 parents 939a44c + 249ccc8 commit a67a542

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/repl.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,11 @@ impl<'a> Repl<'a> {
245245
let line = format!(" {:width$} {}", sig, desc, width = width);
246246
textwrap::fill(&line, &opts)
247247
})
248-
.reduce(|mut out, next| {
248+
.fold(String::new(), |mut out, next| {
249249
out.push_str("\n");
250250
out.push_str(&next);
251251
out
252252
})
253-
.unwrap()
254253
}
255254

256255
/// Returns formatted help message.

0 commit comments

Comments
 (0)