The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

try saving memory

Signed-off-by: Xe Iaso <me@christine.website>

Xe Iaso e32abf82 424da2a2

+2 -2
+2 -2
src/handlers/blog.rs
··· 79 79 Extension(state): Extension<Arc<State>>, 80 80 headers: HeaderMap, 81 81 ) -> Result<(StatusCode, Markup)> { 82 - let mut want: Option<Post> = None; 82 + let mut want: Option<&Post> = None; 83 83 let want_link = format!("blog/{}", name); 84 84 85 85 for post in &state.blog { 86 86 if post.link == want_link { 87 - want = Some(post.clone()); 87 + want = Some(&post); 88 88 } 89 89 } 90 90