Remove deprecated function calls

The replacements were added in 1.30, which we have previously switched to
requiring. This silences two warnings.
This commit is contained in:
Christian Legnitto 2019-03-02 14:31:13 -08:00 committed by theduke
parent a3699ff161
commit 5241455d17

View file

@ -786,9 +786,9 @@ fn clean_docstring(multiline: &[&str]) -> Option<String> {
.map(|ch| ch.is_whitespace())
.unwrap_or(false)
{
ln.trim_right() // skip trimming the first line
ln.trim_end() // skip trimming the first line
} else if ln.len() >= trim_start {
ln[trim_start..].trim_right()
ln[trim_start..].trim_end()
} else {
""
};