mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-25 21:31:00 +00:00
Fix proc macro
This commit is contained in:
parent
f558aefdf3
commit
35040b68f2
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue