mirror of https://github.com/LemmyNet/lemmy.git
Fix errors
parent
36a5210352
commit
a283d155e5
|
@ -29,6 +29,7 @@ extern crate macro_rules_attribute;
|
||||||
extern crate paste;
|
extern crate paste;
|
||||||
|
|
||||||
#[cfg(feature = "full")]
|
#[cfg(feature = "full")]
|
||||||
|
#[allow(unused_imports)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod without_id;
|
mod without_id;
|
||||||
pub mod aggregates;
|
pub mod aggregates;
|
||||||
|
|
|
@ -32,8 +32,7 @@ macro_rules! WithoutId {
|
||||||
}
|
}
|
||||||
) => {
|
) => {
|
||||||
::paste::paste! {
|
::paste::paste! {
|
||||||
// TODO: remove serde derives
|
#[derive(::diesel::Queryable, ::diesel::Selectable)]
|
||||||
#[derive(::diesel::Queryable, ::diesel::Selectable, ::serde::Serialize, ::serde::Deserialize)]
|
|
||||||
#[diesel(table_name = $table_name)]
|
#[diesel(table_name = $table_name)]
|
||||||
$vis struct [<$struct_name WithoutId>] {
|
$vis struct [<$struct_name WithoutId>] {
|
||||||
$(
|
$(
|
||||||
|
|
Loading…
Reference in New Issue