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]