fix(secret-store): deprecation warning (#10301)

use of deprecated item 'core::str::<impl str>::trim_left_matches': superseded by `trim_start_matches`
This commit is contained in:
Niklas Adolfsson 2019-02-06 14:54:35 +01:00 committed by Andronik Ordian
parent 1b3b9b2887
commit 8ab6d89810

View File

@ -334,7 +334,7 @@ fn parse_request(method: &HttpMethod, uri_path: &str, body: &[u8]) -> Request {
Err(_) => return Request::Invalid,
};
let path: Vec<String> = uri_path.trim_left_matches('/').split('/').map(Into::into).collect();
let path: Vec<String> = uri_path.trim_start_matches('/').split('/').map(Into::into).collect();
if path.len() == 0 {
return Request::Invalid;
}