Rust library to generate static websites
5
fork

Configure Feed

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

fix: FromParam import

+1 -3
+1 -3
crates/macros/src/lib.rs
··· 206 206 207 207 // Add a from Hashmap conversion 208 208 let expanded = quote! { 209 - use maudit::params::FromParam; 210 - 211 209 impl From<RouteParams> for #struct_name { 212 210 fn from(params: RouteParams) -> Self { 213 211 #struct_name { 214 - #(#fields: FromParam::from_param(params.0.get(stringify!(#fields)).unwrap()).unwrap(),)* 212 + #(#fields: maudit::params::FromParam::from_param(params.0.get(stringify!(#fields)).unwrap()).unwrap(),)* 215 213 216 214 } 217 215 }