Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix(secret-store): deprecation warning (#10301)
Browse files Browse the repository at this point in the history
use of deprecated item 'core::str::<impl str>::trim_left_matches': superseded by `trim_start_matches`
  • Loading branch information
niklasad1 authored and ordian committed Feb 6, 2019
1 parent 1b3b9b2 commit 8ab6d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secret-store/src/listener/http_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ab6d89

Please sign in to comment.