Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fredr committed Feb 4, 2025
1 parent 5474ca1 commit 1e31c8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtimes/core/src/api/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ impl EndpointHandler {
let internal_caller = request.internal_caller.clone();

// check if this endpoint is exposed by the calling gateway
let exposed = internal_caller.as_ref().map_or(false, |caller| {
let exposed = internal_caller.as_ref().is_some_and(|caller| {
matches!(caller, Caller::Gateway { gateway } if self.endpoint.exposed.contains(gateway))
});

Expand Down Expand Up @@ -682,3 +682,5 @@ impl axum::handler::Handler<(), ()> for EndpointHandler {
pub fn path_supports_tsr(path: &str) -> bool {
path != "/" && !path.ends_with('/') && !path.contains("/*")
}


0 comments on commit 1e31c8e

Please sign in to comment.