Skip to content

Commit

Permalink
incorporate changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Dec 17, 2024
1 parent f9a1fef commit df8e4d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext/commonmarker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn commonmark_to_html(args: &[Value]) -> Result<String, magnus::Error> {
))
}

fn format_options(rb_options: Option<RHash>) -> Result<comrak::Options, magnus::Error> {
fn format_options<'c>(rb_options: Option<RHash>) -> Result<comrak::Options<'c>, magnus::Error> {
let mut comrak_options = ComrakOptions::default();

if let Some(rb_options) = rb_options {
Expand Down
1 change: 1 addition & 0 deletions ext/commonmarker/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ impl CommonmarkerNode {
ComrakNodeValue::Image(..) => Symbol::new("image"),
ComrakNodeValue::Link(..) => Symbol::new("link"),
ComrakNodeValue::Emph => Symbol::new("emph"),
ComrakNodeValue::Raw(..) => Symbol::new("raw"),
ComrakNodeValue::Strong => Symbol::new("strong"),
ComrakNodeValue::Code(..) => Symbol::new("code"),
ComrakNodeValue::HtmlInline(..) => Symbol::new("html_inline"),
Expand Down

0 comments on commit df8e4d2

Please sign in to comment.