diff options
Diffstat (limited to 'src/post')
| -rw-r--r-- | src/post/frontmatter.rs | 7 | ||||
| -rw-r--r-- | src/post/mod.rs | 1 |
2 files changed, 3 insertions, 5 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 => { diff --git a/src/post/mod.rs b/src/post/mod.rs index 79affbc..eb8ee54 100644 --- a/src/post/mod.rs +++ b/src/post/mod.rs @@ -20,7 +20,6 @@ impl Into<jsonfeed::Item> for Post { let mut result = jsonfeed::Item::builder() .title(self.front_matter.title) .content_html(self.body_html) - .content_text(self.body) .id(format!("https://christine.website/{}", self.link)) .url(format!("https://christine.website/{}", self.link)) .date_published(self.date.to_rfc3339()) |
