Fix proc macro

This commit is contained in:
asonix 2019-05-18 12:45:45 -05:00
parent f558aefdf3
commit 35040b68f2
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
name = "activitystreams-derive" name = "activitystreams-derive"
description = "Derive macros for activitystreams" description = "Derive macros for activitystreams"
version = "0.1.0" version = "0.1.1"
license = "GPL-3.0" license = "GPL-3.0"
authors = ["asonix <asonix.dev@gmail.com>"] authors = ["asonix <asonix.dev@gmail.com>"]
repository = "https://git.asonix.dog/Aardwolf/activitystreams" repository = "https://git.asonix.dog/Aardwolf/activitystreams"

View file

@ -413,7 +413,7 @@ pub fn properties_derive(input: TokenStream) -> TokenStream {
/// a lot. /// a lot.
/// ///
/// Possible errors from this method are `Error::Serialize` /// Possible errors from this method are `Error::Serialize`
pub #set_fn_plural(&mut self, item: Vec<#variant>) -> ::activitystreams_traits::Result<()> { pub fn #set_fn_plural(&mut self, item: Vec<#variant>) -> ::activitystreams_traits::Result<()> {
self.#ident = ::activitystreams_traits::properties::to_value(item)?; self.#ident = ::activitystreams_traits::properties::to_value(item)?;
Ok(()) Ok(())
} }