From 47c8711933a0e9c30a861ff9d77ad84a2f4094fa Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sat, 2 Jan 2021 07:10:10 +0900 Subject: [PATCH] Run cargo fmt --- plume-common/src/utils.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plume-common/src/utils.rs b/plume-common/src/utils.rs index ecbea8f1..53a70d7c 100644 --- a/plume-common/src/utils.rs +++ b/plume-common/src/utils.rs @@ -7,7 +7,7 @@ use rocket::{ response::{Flash, Redirect}, }; use std::collections::HashSet; -use syntect::html::{ClassedHTMLGenerator, ClassStyle}; +use syntect::html::{ClassStyle, ClassedHTMLGenerator}; use syntect::parsing::SyntaxSet; /// Generates an hexadecimal representation of 32 bytes of random data @@ -92,7 +92,11 @@ fn highlight_code<'a>( .find_syntax_by_name(&lang) .unwrap_or_else(|| syntax_set.find_syntax_plain_text()) }); - let mut html = ClassedHTMLGenerator::new_with_class_style(&syntax, &syntax_set, ClassStyle::Spaced); + let mut html = ClassedHTMLGenerator::new_with_class_style( + &syntax, + &syntax_set, + ClassStyle::Spaced, + ); for line in ctx.content { html.parse_html_for_line_which_includes_newline(&line); }