mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[PR #1350] [CLOSED] Fix lifetime annotation warnings in attribute resolution functions #1270
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#1270
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/1350
Author: @Copilot
Created: 11/16/2025
Status: ❌ Closed
Base:
main← Head:copilot/fix-opensuse-warnings📝 Commits (2)
ac0e078Initial plan543d5b1Add explicit lifetime annotations to fix openSUSE warnings📊 Changes
1 file changed (+2 additions, -17 deletions)
View changed files
📝
app/src/infra/attributes.rs(+2 -17)📄 Description
Fix openSUSE Build Warnings for Lifetime Annotations
This PR addresses compiler warnings reported when building lldap 0.6.2 on openSUSE with newer Rust compilers.
Changes Made
<'_>lifetime annotations to four functions inapp/src/infra/attributes.rs:resolve_group_attribute_description→Option<AttributeDescription<'_>>resolve_group_attribute_description_or_default→AttributeDescription<'_>resolve_user_attribute_description→Option<AttributeDescription<'_>>resolve_user_attribute_description_or_default→AttributeDescription<'_>mismatched_lifetime_syntaxeslint produces no warningsIssue Details
The openSUSE build for lldap 0.6.2 emitted warnings about "hiding a lifetime that's elided elsewhere is confusing" (
mismatched_lifetime_syntaxeslint). The fix explicitly adds the'_lifetime parameter to return types where the lifetime is inferred from the&strparameter, making the signature clearer and eliminating the warnings.Testing Results
mismatched_lifetime_syntaxeswarningsFixes #1345
Original prompt
This section details on the original issue you should resolve
<issue_title>Building 0.6.2 for openSUSE emits warnings with "warning: hiding a lifetime that's elided elsewhere is confusing"</issue_title>
<issue_description>Dear maintainers,
the openSUSE package for lldap 0.6.2 emits the following warning messages. Those do not seem to be critical, but I wanted to report them nevertheless.
Kind Regards,
Johannes</issue_description>
Comments on the Issue (you are @copilot in this section)
@nitnelave This looks like openSuse compiled LLDAP with a more recent `rustc` than our MSRV. That's totally fine, and I appreciate the report! I'll have a look when I can (or see if we can so...💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.