Skip to content

Commit

Permalink
ui: rm blank line in news and fav list
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Sep 28, 2023
1 parent 0fa9e8b commit 17fe970
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/display/colorful/fav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn list_fav(
buf
})
.try_fold(String::new(), |mut acc, buf: Result<String>| try {
write!(&mut acc, "\n{}", buf?)?;
writeln!(&mut acc, "{}", buf?)?;
acc
})
}
2 changes: 1 addition & 1 deletion src/display/colorful/news.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn list_news(
buf
})
.try_fold(String::new(), |mut acc, buf: Result<String>| try {
write!(&mut acc, "\n{}", buf?)?;
writeln!(&mut acc, "{}", buf?)?;
acc
})
}
2 changes: 1 addition & 1 deletion src/display/normal/fav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn list_fav(
buf
})
.try_fold(String::new(), |mut acc, buf: Result<String>| try {
write!(&mut acc, "\n{}", buf?)?;
writeln!(&mut acc, "{}", buf?)?;
acc
})
}
2 changes: 1 addition & 1 deletion src/display/normal/news.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn list_news(
buf
})
.try_fold(String::new(), |mut acc, buf: Result<String>| try {
write!(&mut acc, "\n{}", buf?)?;
writeln!(&mut acc, "{}", buf?)?;
acc
})
}

0 comments on commit 17fe970

Please sign in to comment.