-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
dapps/js-glue/src/codegen.rs
Outdated
@@ -102,7 +102,7 @@ fn implement_webapp(cx: &ExtCtxt, builder: &aster::AstBuilder, item: &Item, push | |||
let files_impl = quote_item!(cx, | |||
impl $type_name { | |||
fn files() -> ::std::collections::HashMap<&'static str, File> { | |||
let mut files = ::std::collections::HashMap::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That won't work if $statements
are not empty. Actually it shouldn't be printed while compiling Parity at all (since we always have some files there). Maybe better to supress the warning?
dapps/js-glue/src/codegen.rs
Outdated
@@ -101,6 +101,7 @@ fn implement_webapp(cx: &ExtCtxt, builder: &aster::AstBuilder, item: &Item, push | |||
|
|||
let files_impl = quote_item!(cx, | |||
impl $type_name { | |||
#[warn(unused_mut)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ishould it be #[allow(unused_mut)]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weirdly enough it did not produce any warnings when building like this.
doesn't build |
CI:
@paritytech/ci ^ |
No description provided.