Skip to content

Commit 3e7e103

Browse files
committed
fix clippy warnings
Refactor function signatures to include lifetime annotations for better clarity in app_config.rs and oidc.rs
1 parent 7562e5b commit 3e7e103

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ fn create_default_database(configuration_directory: &Path) -> String {
502502
}
503503

504504
#[cfg(any(test, not(feature = "lambda-web")))]
505-
fn encode_uri(path: &Path) -> std::borrow::Cow<str> {
505+
fn encode_uri(path: &Path) -> std::borrow::Cow<'_, str> {
506506
const ASCII_SET: &percent_encoding::AsciiSet = &percent_encoding::NON_ALPHANUMERIC
507507
.remove(b'-')
508508
.remove(b'_')

src/webserver/oidc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ impl OidcLoginState {
805805
}
806806
}
807807

808-
fn create_state_cookie(login_state: &OidcLoginState) -> Cookie {
808+
fn create_state_cookie(login_state: &OidcLoginState) -> Cookie<'_> {
809809
let state_json = serde_json::to_string(login_state).unwrap();
810810
Cookie::build(SQLPAGE_STATE_COOKIE_NAME, state_json)
811811
.secure(true)

0 commit comments

Comments
 (0)