File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
docker_container_repo_dir =/app
5
5
6
6
# Common docker options
7
- rust_docker_container := public.ecr.aws/docker/library/rust:1.85.1
7
+ rust_docker_container := public.ecr.aws/docker/library/rust:1.86.0
8
8
9
9
docker_opts_shared := --rm -v "$(PWD ) ":$(docker_container_repo_dir ) -w $(docker_container_repo_dir )
10
10
rust_docker_run := docker run -v $(PWD ) :/$(docker_container_repo_dir ) -w $(docker_container_repo_dir ) -it -e TEST_ALL_PLUGINS -e CARGO_HOME=/app/.cargo $(rust_docker_container )
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ impl WpSupportsLocalization for RequestExecutionErrorReason {
571
571
RequestExecutionErrorReason :: MisconfiguredHttpAuthenticationError { .. } => {
572
572
WpMessages :: misconfigured_http_authentication_error ( )
573
573
}
574
- RequestExecutionErrorReason :: MisconfiguredRateLimitError { .. } => {
574
+ RequestExecutionErrorReason :: MisconfiguredRateLimitError => {
575
575
WpMessages :: misconfigured_rate_limit_error ( )
576
576
}
577
577
RequestExecutionErrorReason :: HttpForbiddenError { hostname } => {
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ mod tests {
442
442
Err ( RequestExecutionError :: RequestExecutionFailed {
443
443
status_code: Some ( 429 ) ,
444
444
redirects: None ,
445
- reason: RequestExecutionErrorReason :: MisconfiguredRateLimitError { } ,
445
+ reason: RequestExecutionErrorReason :: MisconfiguredRateLimitError ,
446
446
} )
447
447
) ) ;
448
448
}
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ impl UrlExtension for Url {
58
58
I :: Item : AsRef < str > ,
59
59
{
60
60
// Drop the trailing slash, so that `foo/` and `bar` turn into `foo/bar` instead of `foo//bar`.
61
- if let Some ( segments) = self . path_segments ( ) {
62
- if segments. last ( ) == Some ( "" ) {
61
+ if let Some ( mut segments) = self . path_segments ( ) {
62
+ if segments. next_back ( ) == Some ( "" ) {
63
63
self . path_segments_mut ( ) ?. pop ( ) ;
64
64
}
65
65
}
You can’t perform that action at this time.
0 commit comments