File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed
cli/examples/custom-backend Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ ptr_cast_constness = "warn"
146146ref_as_ptr = " warn"
147147semicolon_if_nothing_returned = " warn"
148148uninlined_format_args = " warn"
149+ unnecessary_literal_bound = " warn"
149150unused_trait_names = " warn"
150151use_self = " warn"
151152useless_conversion = " warn"
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ impl JitBackend {
114114
115115#[ async_trait]
116116impl Backend for JitBackend {
117- fn name ( & self ) -> & str {
117+ fn name ( & self ) -> & ' static str {
118118 "jit"
119119 }
120120
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl GpgBackend {
176176}
177177
178178impl SigningBackend for GpgBackend {
179- fn name ( & self ) -> & str {
179+ fn name ( & self ) -> & ' static str {
180180 "gpg"
181181 }
182182
@@ -264,7 +264,7 @@ impl GpgsmBackend {
264264}
265265
266266impl SigningBackend for GpgsmBackend {
267- fn name ( & self ) -> & str {
267+ fn name ( & self ) -> & ' static str {
268268 "gpgsm"
269269 }
270270
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ impl SshBackend {
210210}
211211
212212impl SigningBackend for SshBackend {
213- fn name ( & self ) -> & str {
213+ fn name ( & self ) -> & ' static str {
214214 "ssh"
215215 }
216216
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub struct TestSigningBackend;
3030const PREFIX : & str = "--- JJ-TEST-SIGNATURE ---\n KEY: " ;
3131
3232impl SigningBackend for TestSigningBackend {
33- fn name ( & self ) -> & str {
33+ fn name ( & self ) -> & ' static str {
3434 "test"
3535 }
3636
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ impl Debug for TestBackend {
168168
169169#[ async_trait]
170170impl Backend for TestBackend {
171- fn name ( & self ) -> & str {
171+ fn name ( & self ) -> & ' static str {
172172 "test"
173173 }
174174
You can’t perform that action at this time.
0 commit comments