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:
parent
a3699ff161
commit
5241455d17
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
""
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue