derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

`IsVariant` fails to interpolate variant names in documentation

Open alpha-tango-kilo opened this issue 1 year ago • 0 comments
trafficstars

My enum:

#[derive(Debug, Clone, PartialEq, IsVariant)]
pub enum Value<'a> {
    Array(Array<'a>),
    Dictionary(Dictionary<'a>),
    Boolean(bool),
    Data(Data<'a>),
    Date(Date),
    Float(f64),
    Integer(Integer),
    Real(f64),
    String(&'a str),
    Uid(Uid),
}

cargo expand shows this:

image

Which is also what appears in the generated (local) documentation:

image

Not sure if this is an edge case I've hit or just something no one has spotted previously

If you can point me in the approximate direction I can probably write & PR a fix, looks like some quote! tomfoolery

alpha-tango-kilo avatar May 17 '24 16:05 alpha-tango-kilo