We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4293a44 commit 861bc54Copy full SHA for 861bc54
deku-derive/src/macros/mod.rs
@@ -9,11 +9,12 @@ pub(crate) mod deku_write;
9
10
#[cfg(feature = "proc-macro-crate")]
11
fn get_crate_name() -> Ident {
12
- let found_crate = proc_macro_crate::crate_name("deku").unwrap_or(proc_macro_crate::FoundCrate::Itself);
+ let found_crate =
13
+ proc_macro_crate::crate_name("deku").unwrap_or(proc_macro_crate::FoundCrate::Itself);
14
15
let crate_name = match found_crate {
16
proc_macro_crate::FoundCrate::Itself => "deku".to_string(),
- proc_macro_crate::FoundCrate::Name(name) => name
17
+ proc_macro_crate::FoundCrate::Name(name) => name,
18
};
19
20
Ident::new(&crate_name, Span::call_site())
0 commit comments