diff options
| author | troido <troido@protonmail.com> | 2020-04-03 19:55:32 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-03 19:55:32 +0200 |
| commit | 4e4f8d2462262ec8326e9f3e5a25ed580d098159 (patch) | |
| tree | 99fe051e5509a7dbb5bd6ebd5feec005d3fbf41f /src/componentwrapper.rs | |
| parent | fd0bd24fa4e98b3bcd95a14ff844411727fb4433 (diff) | |
aerr! has formatting functionality; better errors; radishses -> radishes
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 4 |
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 |
