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:
parent
1b3b9b2887
commit
8ab6d89810
@ -334,7 +334,7 @@ fn parse_request(method: &HttpMethod, uri_path: &str, body: &[u8]) -> Request {
|
|||||||
Err(_) => return Request::Invalid,
|
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 {
|
if path.len() == 0 {
|
||||||
return Request::Invalid;
|
return Request::Invalid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user