mirror of
https://codeberg.org/icewind/real-ip.git
synced 2026-06-03 09:34:08 +02:00
fix potentially confusing lifetime
This commit is contained in:
parent
11a4fc037e
commit
c9aea2fc74
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ enum EscapeState {
|
|||
Escaped,
|
||||
}
|
||||
|
||||
fn maybe_quoted(x: &str) -> Cow<str> {
|
||||
fn maybe_quoted<'a>(x: &'a str) -> Cow<'a, str> {
|
||||
let mut i = x.chars();
|
||||
if i.next() == Some('"') {
|
||||
let mut s = String::with_capacity(x.len());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue