Skip to content

Commit 5241455

Browse files
LegNeatotheduke
authored and
theduke
committed
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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

juniper/src/schema/meta.rs

+2-2
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)