Skip to content

Commit

Permalink
fix: satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Jul 20, 2024
1 parent 743d93a commit 712d871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/site-app/src/markdown.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{io::Cursor, path::PathBuf, str::FromStr};
use std::io::Cursor;

use pulldown_cmark::{CodeBlockKind, CowStr, Event, Tag};

Expand Down
6 changes: 2 additions & 4 deletions crates/site-app/src/posts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ pub fn PostPage() -> impl IntoView {
let params = use_params_map();
let path = params().get("path").unwrap().clone();

let post_resource = create_blocking_resource(
move || path.clone(),
|path| get_post_by_path(path),
);
let post_resource =
create_blocking_resource(move || path.clone(), get_post_by_path);

view! {
<Suspense>
Expand Down

0 comments on commit 712d871

Please sign in to comment.