What is the proposed feature?
I suggest to change the signature of convert (in html-to-markdown-rs) from
fn convert(html: &str, options: Option<ConversionOptions>)
to
fn convert(html: &str, options: ConversionOptions)
Why would this be a good addition?
I don't see much much point in the Option; callers can simply supply Default::default() (or ConversionOptions::default() for None. The API becomes a bit more explicit and easier to read (no wondering what a None parameter does that might be different from the default) while reducing the need to wrap the options with Some.
What is the proposed feature?
I suggest to change the signature of
convert(in html-to-markdown-rs) fromfn convert(html: &str, options: Option<ConversionOptions>)to
fn convert(html: &str, options: ConversionOptions)Why would this be a good addition?
I don't see much much point in the
Option; callers can simply supplyDefault::default()(orConversionOptions::default()forNone. The API becomes a bit more explicit and easier to read (no wondering what aNoneparameter does that might be different from the default) while reducing the need to wrap the options withSome.