File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 - name : Install rust MSRV
4949 uses : actions-rust-lang/setup-rust-toolchain@v1
5050 with :
51- toolchain : 1.70
51+ toolchain : 1.78
5252 components : clippy
5353
5454 - name : Clippy check
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
99name = " dbus-secret-service"
1010version = " 4.1.0"
1111edition = " 2021"
12- rust-version = " 1.70 "
12+ rust-version = " 1.78 " # required for Cargo.lock v4
1313exclude = [" .github/" ]
1414
1515[features ]
Original file line number Diff line number Diff line change @@ -233,8 +233,7 @@ impl SecretService {
233233 }
234234
235235 /// Get all collections
236- #[ allow( mismatched_lifetime_syntaxes) ]
237- pub fn get_all_collections ( & self ) -> Result < Vec < Collection > , Error > {
236+ pub fn get_all_collections ( & ' _ self ) -> Result < Vec < Collection < ' _ > > , Error > {
238237 let paths = self . proxy ( ) . collections ( ) ?;
239238 let collections = paths
240239 . into_iter ( )
@@ -248,8 +247,7 @@ impl SecretService {
248247 /// The most common would be the `default` alias, but there
249248 /// is also a specific method for getting the collection
250249 /// by default alias.
251- #[ allow( mismatched_lifetime_syntaxes) ]
252- pub fn get_collection_by_alias ( & self , alias : & str ) -> Result < Collection , Error > {
250+ pub fn get_collection_by_alias ( & ' _ self , alias : & str ) -> Result < Collection < ' _ > , Error > {
253251 let path = self . proxy ( ) . read_alias ( alias) ?;
254252 if path == Path :: new ( "/" ) ? {
255253 Err ( Error :: NoResult )
You can’t perform that action at this time.
0 commit comments