Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jim Turner
distrackt
Commits
6e2c73e5
Commit
6e2c73e5
authored
Sep 19, 2016
by
Jim Turner
Browse files
Remove unnecessary lifetime annotation
parent
f367ca18
Pipeline
#4303608
passed with stage
in 1 minute and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/url_filters/util.rs
View file @
6e2c73e5
...
...
@@ -10,7 +10,7 @@ use std::borrow::Cow;
use
url
::
Url
;
use
super
::
MissingQueryError
;
pub
fn
query_pair_value
<
'a
,
'b
>
(
url
:
&
'a
Url
,
key
:
&
'b
str
)
->
Result
<
Cow
<
'a
,
str
>
,
MissingQueryError
>
{
pub
fn
query_pair_value
<
'a
>
(
url
:
&
'a
Url
,
key
:
&
str
)
->
Result
<
Cow
<
'a
,
str
>
,
MissingQueryError
>
{
let
(
_
,
value
)
=
try
!
(
url
.query_pairs
()
.find
(|
&
(
ref
k
,
_
)|
k
==
key
)
.ok_or
(
MissingQueryError
::
new
(
key
)));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment