We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6ef52c6 + 7ced6cd commit 2e69081Copy full SHA for 2e69081
impl/src/lib.rs
@@ -324,8 +324,7 @@ fn impl_rust_embed(ast: &syn::DeriveInput) -> syn::Result<TokenStream2> {
324
325
let crate_path: syn::Path = find_attribute_values(ast, "crate_path")
326
.last()
327
- .map(|v| syn::parse_str(v).unwrap())
328
- .unwrap_or_else(|| syn::parse_str("rust_embed").unwrap());
+ .map_or_else(|| syn::parse_str("rust_embed").unwrap(), |v| syn::parse_str(v).unwrap());
329
330
let mut folder_paths = find_attribute_values(ast, "folder");
331
if folder_paths.len() != 1 {
0 commit comments