security/kanidm: Fix build with rust 1.89.0

error: hiding a lifetime that's elided elsewhere is confusing
  --> rust-sshkeys-d736693769b9c4abebad8050fba92271f3c50226/src/reader.rs:24:48
   |
24 |     pub fn new<T: ?Sized + AsRef<[u8]>>(inner: &T) -> Reader {
   |                                                ^^     ------ the same lifetime is hidden here
   |                                                |
   |                                                the lifetime is elided here
   |
   = help: the same lifetime is referred to in inconsistent ways, making the signature confusing

PR:		288923
Approved by:	portmgr (build fix blanket)
This commit is contained in:
Mikael Urankar 2025-09-17 10:24:56 +02:00
parent ce0bdff4c8
commit efe9fe925a
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- ../rust-sshkeys-d736693769b9c4abebad8050fba92271f3c50226/src/reader.rs.orig 2025-09-17 10:09:23 UTC
+++ ../rust-sshkeys-d736693769b9c4abebad8050fba92271f3c50226/src/reader.rs
@@ -21,6 +21,7 @@ impl<'a> Reader<'a> {
/// let num = reader.read_u32().unwrap();
/// assert_eq!(num, 42);
/// ```
+ #[allow(mismatched_lifetime_syntaxes)]
pub fn new<T: ?Sized + AsRef<[u8]>>(inner: &T) -> Reader {
Reader {
inner: inner.as_ref(),