aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-02-07 10:51:44 -0800
committerZeyla Hellyer <[email protected]>2017-02-07 10:51:44 -0800
commit6f33a35c4f85a06c45c4ce9e118db203c4951475 (patch)
tree41b5d956f578fca63b36e703a5ebd36ce6061037 /src
parentRemove MessageId::get_reaction_users (diff)
downloadserenity-6f33a35c4f85a06c45c4ce9e118db203c4951475.tar.xz
serenity-6f33a35c4f85a06c45c4ce9e118db203c4951475.zip
Remove lifetime on Search
Diffstat (limited to 'src')
-rw-r--r--src/utils/builder/search.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/builder/search.rs b/src/utils/builder/search.rs
index f6256d8..6aaffca 100644
--- a/src/utils/builder/search.rs
+++ b/src/utils/builder/search.rs
@@ -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 (`.`)
@@ -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.
@@ -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())
}
}