git: efe9fe925a3f - main - security/kanidm: Fix build with rust 1.89.0

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Wed, 17 Sep 2025 08:40:35 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=efe9fe925a3fc332d18c7f3f52d68cb0e38edd63

commit efe9fe925a3fc332d18c7f3f52d68cb0e38edd63
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2025-09-17 08:24:56 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-09-17 08:40:33 +0000

    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)
---
 security/kanidm/files/patch-rust-1.89.0 | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/security/kanidm/files/patch-rust-1.89.0 b/security/kanidm/files/patch-rust-1.89.0
new file mode 100644
index 000000000000..3775ee9a29d2
--- /dev/null
+++ b/security/kanidm/files/patch-rust-1.89.0
@@ -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(),