Skip to content

Commit

Permalink
Fix string format interpolation
Browse files Browse the repository at this point in the history
Signed-off-by: David Calavera <david.calavera@gmail.com>
  • Loading branch information
calavera committed Feb 1, 2023
1 parent 2f322ae commit 9ddfdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda-runtime-api-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ where
(scheme, authority, base_path)
};
let path = parts.uri.path_and_query().expect("PathAndQuery not found");
let pq: PathAndQuery = format!("{}{}", base_path, path).parse().expect("PathAndQuery invalid");
let pq: PathAndQuery = format!("{base_path}{path}").parse().expect("PathAndQuery invalid");

let uri = Uri::builder()
.scheme(scheme.as_ref())
Expand Down

0 comments on commit 9ddfdf0

Please sign in to comment.