diff options
Diffstat (limited to 'src/post/frontmatter.rs')
| -rw-r--r-- | src/post/frontmatter.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/post/frontmatter.rs b/src/post/frontmatter.rs index 615f2c5..f2c1587 100644 --- a/src/post/frontmatter.rs +++ b/src/post/frontmatter.rs @@ -1,7 +1,6 @@ /// This code was borrowed from @fasterthanlime. - -use color_eyre::eyre::{Result}; -use serde::{Serialize, Deserialize}; +use color_eyre::eyre::Result; +use serde::{Deserialize, Serialize}; #[derive(Eq, PartialEq, Deserialize, Default, Debug, Serialize, Clone)] pub struct Data { @@ -81,7 +80,7 @@ impl Data { }; } } - _ => panic!("Expected newline, got {:?}",), + _ => panic!("Expected newline, got {:?}", ch), }, State::ReadingFrontMatter { buf, line_start } => match ch { '-' if *line_start => { |
