mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
Rust documentation improvements
Document all public modules and some methods. Make some internal public symbols private.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//! # Simplify incoming plaintext.
|
||||
|
||||
use itertools::Itertools;
|
||||
|
||||
// protect lines starting with `--` against being treated as a footer.
|
||||
@@ -241,9 +243,7 @@ fn render_message(lines: &[&str], is_cut_at_end: bool) -> String {
|
||||
ret.replace("\u{200B}", "")
|
||||
}
|
||||
|
||||
/**
|
||||
* Tools
|
||||
*/
|
||||
/// Returns true if the line contains only whitespace.
|
||||
fn is_empty_line(buf: &str) -> bool {
|
||||
buf.chars().all(char::is_whitespace)
|
||||
// for some time, this checked for `char <= ' '`,
|
||||
|
||||
Reference in New Issue
Block a user