Skip to content

Commit 5241455

Browse files
LegNeatotheduke
authored andcommitted
Remove deprecated function calls
The replacements were added in 1.30, which we have previously switched to requiring. This silences two warnings.
1 parent a3699ff commit 5241455

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

juniper/src/schema/meta.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,9 @@ fn clean_docstring(multiline: &[&str]) -> Option<String> {
786786
.map(|ch| ch.is_whitespace())
787787
.unwrap_or(false)
788788
{
789-
ln.trim_right() // skip trimming the first line
789+
ln.trim_end() // skip trimming the first line
790790
} else if ln.len() >= trim_start {
791-
ln[trim_start..].trim_right()
791+
ln[trim_start..].trim_end()
792792
} else {
793793
""
794794
};

0 commit comments

Comments
 (0)