Trigger a cargo update 2
This commit is contained in:
parent
bed24b283f
commit
3f70c53aab
1 changed files with 8 additions and 2 deletions
10
src/lib.rs
10
src/lib.rs
|
@ -140,12 +140,18 @@ impl<'a, 'b, T: Iterator<Item = Event<'a>>> Iterator for JotdownIntoBuffer<'a, '
|
|||
|
||||
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]
|
||||
pub struct RichText<'a>(
|
||||
pub Cow<'a, str>,
|
||||
Cow<'a, str>,
|
||||
#[cfg_attr(feature = "serde", serde(with = "AttrsSerde"))]
|
||||
#[cfg_attr(feature = "serde", serde(borrow))]
|
||||
pub Attrs<'a>,
|
||||
Attrs<'a>,
|
||||
);
|
||||
|
||||
impl<'a> From<(Cow<'a, str>, Attrs<'a>)> for RichText<'a> {
|
||||
fn from(value: (Cow<'a, str>, Attrs<'a>)) -> Self {
|
||||
Self(value.0, value.1)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]
|
||||
pub struct JotdownItem<'a> {
|
||||
pub indent: Indent,
|
||||
|
|
Loading…
Reference in a new issue