Skip to content

Commit

Permalink
update build deps for ructe and bump version to v0.253.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Apr 10, 2023
1 parent e9cc4a3 commit 5ab8418
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 36 deletions.
39 changes: 7 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rblog"
version = "0.252.0"
version = "0.253.0"
authors = ["Prabir Shrestha <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/prabirshrestha/rblog"

build = "src/build.rs"
[build-dependencies]
ructe = { version = "0.15.0", features = ["sass", "mime03"] }
ructe = { version = "0.16.1", features = ["sass", "mime03"] }

[dependencies]
anyhow = "1.0.70"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/rss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn rss_feed(depot: &mut Depot, res: &mut Response) -> Result<()> {
.map(|key| state.get_blog().get_post(key).unwrap())
.collect();

render_rss(res, |o| templates::rss(o, blog, posts))?;
render_rss(res, |o| templates::rss_html(o, blog, posts))?;

Ok(())
}
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct NotFoundCatcher;
impl Catcher for NotFoundCatcher {
fn catch(&self, _req: &Request, _depot: &Depot, res: &mut Response) -> bool {
if let Some(StatusCode::NOT_FOUND) = res.status_code() {
match render_html(res, |o| templates::notfound(o)) {
match render_html(res, |o| templates::notfound_html(o)) {
Ok(_) => true,
Err(_) => false,
}
Expand Down

0 comments on commit 5ab8418

Please sign in to comment.