From fbcb99669ec53927fd62126803065943535fe51f Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 6 Feb 2019 19:39:44 -0800 Subject: [PATCH] Update deprecated 'trim_right()' to 'trim_end()'. --- examples/pastebin/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pastebin/src/tests.rs b/examples/pastebin/src/tests.rs index ecd0afc1..fa153294 100644 --- a/examples/pastebin/src/tests.rs +++ b/examples/pastebin/src/tests.rs @@ -3,7 +3,7 @@ use rocket::local::Client; use rocket::http::{Status, ContentType}; fn extract_id(from: &str) -> Option { - from.rfind('/').map(|i| &from[(i + 1)..]).map(|s| s.trim_right().to_string()) + from.rfind('/').map(|i| &from[(i + 1)..]).map(|s| s.trim_end().to_string()) } #[test]