mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Don't require importing Param for derive macro
This commit is contained in:
@@ -176,6 +176,9 @@ pub fn derive_params(input: TokenStream) -> TokenStream {
|
||||
fn param_map(
|
||||
self: std::pin::Pin<&Self>,
|
||||
) -> std::collections::HashMap<&'static str, nih_plug::param::internals::ParamPtr> {
|
||||
// This may not be in scope otherwise
|
||||
use ::nih_plug::Param;
|
||||
|
||||
let mut param_map = std::collections::HashMap::new();
|
||||
|
||||
#(#param_mapping_insert_tokens)*
|
||||
|
||||
Reference in New Issue
Block a user