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 @@ -149,7 +149,7 @@ impl KeyConfig {
149
149
/// Returns the password in case any is provided.
150
150
///
151
151
/// If `password_file` was given, the password is read from that file.
152
- async fn password ( & self ) -> anyhow:: Result < Option < Cow < [ u8 ] > > > {
152
+ async fn password ( & self ) -> anyhow:: Result < Option < Cow < ' _ , [ u8 ] > > > {
153
153
Ok ( match & self . password {
154
154
Some ( Password :: File ( path) ) => Some ( Cow :: Owned ( tokio:: fs:: read ( path) . await ?) ) ,
155
155
Some ( Password :: Value ( password) ) => Some ( Cow :: Borrowed ( password. as_bytes ( ) ) ) ,
@@ -160,7 +160,7 @@ impl KeyConfig {
160
160
/// Returns the key.
161
161
///
162
162
/// If `key_file` was given, the key is read from that file.
163
- async fn key ( & self ) -> anyhow:: Result < Cow < [ u8 ] > > {
163
+ async fn key ( & self ) -> anyhow:: Result < Cow < ' _ , [ u8 ] > > {
164
164
Ok ( match & self . key {
165
165
Key :: File ( path) => Cow :: Owned ( tokio:: fs:: read ( path) . await ?) ,
166
166
Key :: Value ( key) => Cow :: Borrowed ( key. as_bytes ( ) ) ,
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ impl std::ops::Deref for AuthorizationGrant {
173
173
174
174
impl AuthorizationGrant {
175
175
#[ must_use]
176
- pub fn parse_login_hint ( & self , homeserver : & str ) -> LoginHint {
176
+ pub fn parse_login_hint ( & self , homeserver : & str ) -> LoginHint < ' _ > {
177
177
let Some ( login_hint) = & self . login_hint else {
178
178
return LoginHint :: None ;
179
179
} ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ fn keystore(alg: &JsonWebSignatureAlg) -> Keystore {
74
74
}
75
75
76
76
/// Generate an ID token.
77
- fn id_token ( issuer : & str ) -> ( IdToken , PublicJsonWebKeySet ) {
77
+ fn id_token ( issuer : & str ) -> ( IdToken < ' _ > , PublicJsonWebKeySet ) {
78
78
let signing_alg = ID_TOKEN_SIGNING_ALG ;
79
79
80
80
let keystore = keystore ( & signing_alg) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ fn id_token(
34
34
issuer : & str ,
35
35
flag : Option < IdTokenFlag > ,
36
36
auth_time : Option < DateTime < Utc > > ,
37
- ) -> ( IdToken , PublicJsonWebKeySet ) {
37
+ ) -> ( IdToken < ' _ > , PublicJsonWebKeySet ) {
38
38
let signing_alg = ID_TOKEN_SIGNING_ALG ;
39
39
40
40
let keystore = keystore ( & signing_alg) ;
You can’t perform that action at this time.
0 commit comments