Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
cargo fmt + clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Oct 27, 2022
1 parent b0cfc6a commit b5a82cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion frame/support/procedural/src/pallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub fn pallet(
let mut dev_mode = false;
if !attr.is_empty() {
if let Ok(_) = syn::parse::<keyword::dev_mode>(attr.clone()) {
println!("dev mode detected!");
dev_mode = true;
} else {
let msg = "Invalid pallet macro call: unexpected attribute. Macro call must be \
Expand Down
5 changes: 2 additions & 3 deletions frame/support/procedural/src/pallet/parse/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,8 @@ impl CallDef {
if weight_attrs.is_empty() && dev_mode {
// inject a default O(1) weight when dev mode is enabled and no weight has
// been specified on the call
let empty_weight: syn::Expr =
syn::parse(quote::quote!(0).into())
.expect("we are parsing a quoted string; qed");
let empty_weight: syn::Expr = syn::parse(quote::quote!(0).into())
.expect("we are parsing a quoted string; qed");
weight_attrs.push(FunctionAttr::Weight(empty_weight));
}

Expand Down

0 comments on commit b5a82cb

Please sign in to comment.