commit fbcb99669ec53927fd62126803065943535fe51f parent f0c6c9b26f2bb08531b450024b6b52d79644fa8e Author: Sergio Benitez <sb@sergio.bz> Date: Wed, 6 Feb 2019 19:39:44 -0800 Update deprecated 'trim_right()' to 'trim_end()'. Diffstat:
M | 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 @@ -3,7 +3,7 @@ use rocket::local::Client; use rocket::http::{Status, ContentType}; fn extract_id(from: &str) -> Option<String> { - 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]