Skip to content

Commit

Permalink
Remove lifetime on Search
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyla Hellyer committed Feb 7, 2017
1 parent 268f356 commit 6f33a35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/builder/search.rs
Expand Up @@ -188,9 +188,9 @@ impl SortingOrder {
/// [`offset`]: #method.offset
/// [`sort_by`]: #method.sort_by
/// [example 08]: https://github.com/zeyla/serenity/tree/master/examples/08_search
pub struct Search<'a>(pub BTreeMap<&'a str, String>);
pub struct Search(pub BTreeMap<&'static str, String>);

impl<'a> Search<'a> {
impl Search {
/// Sets the list of attachment extensions to search by.
///
/// When providing a vector of extensions, do _not_ include the period (`.`)
Expand Down Expand Up @@ -359,7 +359,7 @@ impl<'a> Search<'a> {
}
}

impl<'a> Default for Search<'a> {
impl Default for Search {
/// Creates a new builder for searching for [`Message`]s. Refer to each
/// method to learn what minimum and maximum values are available for each
/// field, as well as restrictions and other useful information.
Expand All @@ -379,7 +379,7 @@ impl<'a> Default for Search<'a> {
/// [`limit`]: #method.limit
/// [`offset`]: #method.offset
/// [`sort_by`]: #method.sort_by
fn default<'b>() -> Search<'b> {
fn default() -> Search {
Search(BTreeMap::default())
}
}

0 comments on commit 6f33a35

Please sign in to comment.