chore/docs: eliminate warnings (#2583)
* chore: replace trim_right with $ sed -i'' 's/trim_right/trim_end/' **/*.rs * docs: individually document macros to avoid warning, add TODO to make to_edge hygenic * docs: document impl_array_newtype macros, refactor: move all impl_array_newtype macro traits into impl_array_netype_index
This commit is contained in:
committed by
Ignotus Peverell
parent
ac6ed71abd
commit
dc6542d82b
+1
-1
@@ -142,7 +142,7 @@ impl From<Request<Body>> for QueryParams {
|
||||
#[macro_export]
|
||||
macro_rules! right_path_element(
|
||||
($req: expr) =>(
|
||||
match $req.uri().path().trim_right_matches('/').rsplit('/').next() {
|
||||
match $req.uri().path().trim_end_matches('/').rsplit('/').next() {
|
||||
None => return response(StatusCode::BAD_REQUEST, "invalid url"),
|
||||
Some(el) => el,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user