Skip to content

Commit

Permalink
cargo format
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardloveall committed Jul 7, 2022
1 parent 64b8173 commit b7880fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ pub use html::format_document_with_plugins as format_html_with_plugins;
pub use html::Anchorizer;
pub use parser::{
parse_document, parse_document_with_broken_link_callback, ComrakExtensionOptions,
ComrakOptions, ComrakParseOptions, ComrakPlugins, ComrakRenderOptions, ComrakRenderPlugins, ListStyleType
ComrakOptions, ComrakParseOptions, ComrakPlugins, ComrakRenderOptions, ComrakRenderPlugins,
ListStyleType,
};
pub use typed_arena::Arena;

Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern crate xdg;

use comrak::{
Arena, ComrakExtensionOptions, ComrakOptions, ComrakParseOptions, ComrakPlugins,
ComrakRenderOptions, ListStyleType
ComrakRenderOptions, ListStyleType,
};

use comrak::adapters::SyntaxHighlighterAdapter;
Expand Down Expand Up @@ -233,7 +233,7 @@ if the file does not exist.\
.value_of("list-style")
.unwrap_or("dash")
.parse::<ListStyleType>()
.expect("unknown list style")
.expect("unknown list style"),
},
};

Expand Down
4 changes: 3 additions & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,9 @@ pub enum ListStyleType {
}

impl Default for ListStyleType {
fn default() -> Self { ListStyleType::Dash }
fn default() -> Self {
ListStyleType::Dash
}
}

impl FromStr for ListStyleType {
Expand Down
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn fuzz_doesnt_crash(md: String) {
width: 80,
unsafe_: true,
escape: false,
list_style: ::ListStyleType::Dash
list_style: ::ListStyleType::Dash,
},
};

Expand Down

0 comments on commit b7880fb

Please sign in to comment.