oso
oso copied to clipboard
Broken implementation of the oso::PolarClass derive macro
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