Skip to content

Conversation

@AaronChen0
Copy link
Contributor

https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint

warning: hiding a lifetime that's elided elsewhere is confusing
   --> crates/shadowsocks-service/src/acl/mod.rs:546:31
    |
546 |     fn convert_to_ascii(host: &str) -> Cow<str> {
    |                               ^^^^     -------- 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
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
546 |     fn convert_to_ascii(host: &str) -> Cow<'_, str> {
    |                                            +++

warning: `shadowsocks-service` (lib) generated 1 warning

@zonyitoo zonyitoo merged commit 0e5adbe into shadowsocks:master Aug 11, 2025
17 checks passed
@AaronChen0 AaronChen0 deleted the lints branch August 12, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants