Commit 6e2c73e5 authored by Jim Turner's avatar Jim Turner
Browse files

Remove unnecessary lifetime annotation

parent f367ca18
Pipeline #4303608 passed with stage
in 1 minute and 38 seconds
......@@ -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)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment