Update deprecated 'trim_right()' to 'trim_end()'.

This commit is contained in:
Sergio Benitez 2019-02-06 19:39:44 -08:00
parent f0c6c9b26f
commit fbcb99669e
1 changed files with 1 additions and 1 deletions

View File

@ -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]