oso icon indicating copy to clipboard operation
oso copied to clipboard

Broken implementation of the oso::PolarClass derive macro

Open Siceberg opened this issue 2 years ago • 0 comments

I am using both diesel 2.0 and oso in a project, if I define a struct:

#[derive(PolarClass)]
#[diesel(table_name = accounts)]
pub struct Account {
    #[polar(attribute)]
    pub id: Uuid,
    pub email: String,
}

get error:

proc-macro derive panicked
message: called `Result::unwrap()` on an `Err` value: Error("expected literal")

this looks like a broken implementation of the oso::PolarClass derive macro.

Here is demo

Siceberg avatar Jul 18 '22 09:07 Siceberg