diff options
| author | Fuwn <[email protected]> | 2022-05-18 01:52:36 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-18 01:52:36 +0000 |
| commit | 11405ce0600d61f3772a7efe7fbd3de4cc2bf892 (patch) | |
| tree | 24ebda9cc59ae51b4e87fdde688fe009eaf420af /src/ast.rs | |
| parent | chore(makefile): use --all-features (diff) | |
| download | germ-11405ce0600d61f3772a7efe7fbd3de4cc2bf892.tar.xz germ-11405ce0600d61f3772a7efe7fbd3de4cc2bf892.zip | |
fix: global clippy lint fixes
Diffstat (limited to 'src/ast.rs')
| -rw-r--r-- | src/ast.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -202,6 +202,7 @@ pub fn build(source: &str) -> Vec<Node> { ast } +#[allow(clippy::too_many_lines)] fn evaluate( line: &str, lines: &mut std::str::Lines<'_>, @@ -320,7 +321,7 @@ fn evaluate( break; } // This as a catchall, it does a number of things. - _ => + _ => { if *in_preformatted { // If we are in a preformatted line context, add the line to the // preformatted blocks content and increment the line. @@ -342,7 +343,8 @@ fn evaluate( nodes.push(Node::Text(line.to_string())); break; - }, + } + } } } |