summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index 038b526..88a29f3 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -45,9 +45,9 @@ macro_rules! components {
use crate::components::$comp;
$(
let $paramname = match parameters.remove(stringify!($paramname))
- .ok_or(aerr!(&format!("required parameter '{}'not found", stringify!($paramname))))? {
+ .ok_or(aerr!("required parameter '{}'not found", stringify!($paramname)))? {
Parameter::$paramtype(p) => p,
- x => Err(aerr!(&format!("parameter type mismatch for parameter {}: {} {:?}", stringify!($paramname), stringify!($paramtype), x)))?
+ x => Err(aerr!("parameter type mismatch for parameter {}: {} {:?}", stringify!($paramname), stringify!($paramtype), x))?
};
)*
$creation