aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-04-23 13:36:32 -0700
committerZeyla Hellyer <[email protected]>2017-04-23 13:36:32 -0700
commita1c035d5bb162fddd000316f565b19b9b3cf673a (patch)
tree5eaae7950a9476ac5e75ec962e3793198974f60d /src/utils
parentFix ratelimiting on `Route::None` routes (diff)
downloadserenity-a1c035d5bb162fddd000316f565b19b9b3cf673a.tar.xz
serenity-a1c035d5bb162fddd000316f565b19b9b3cf673a.zip
Update most dependency version requirements
Update the dependencies `base64`, `bitflags`, `byteorder`, `serde`, `serde_derive`, and `serde_json`. These dependencies have been updated, with byteorder and serde** hitting v1.0.0, so they should be updated for the v0.2.0 serenity release.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/macros.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/macros.rs b/src/utils/macros.rs
index 27b3a9b..e51074b 100644
--- a/src/utils/macros.rs
+++ b/src/utils/macros.rs
@@ -119,7 +119,7 @@ macro_rules! feature_voice {
macro_rules! enum_number {
(#[$attr_:meta] $name:ident { $(#[$attr:meta] $variant:ident = $value:expr, )* }) => {
#[$attr_]
- #[derive(Copy, Clone, Debug, Hash, Eq, PartialEq, PartialOrd, Ord)]
+ #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)]
pub enum $name {
$(
#[$attr]
@@ -136,13 +136,13 @@ macro_rules! enum_number {
}
}
- impl ::serde::Deserialize for $name {
+ impl<'de> ::serde::Deserialize<'de> for $name {
fn deserialize<D>(deserializer: D) -> ::std::result::Result<Self, D::Error>
- where D: ::serde::Deserializer
+ where D: ::serde::Deserializer<'de>
{
struct Visitor;
- impl ::serde::de::Visitor for Visitor {
+ impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = $name;
fn expecting(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {