Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
weezy20 committed Mar 20, 2024
1 parent f5ff852 commit 96401ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/engines/pallet_engine/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ impl Dependency {
// The reason is, `pop new pallet` places a new pallet on $(workspace_root)/pallets
std::path::Path::new("../pallets/pallet-parachain-template").to_path_buf(),
semver::Version::new(1, 0, 0),
).into(),
)
.into(),
default_features: false,
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/engines/pallet_engine/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ impl ToTokens for PalletDeclaration {
let idx = format!(" = {},", idx);
// This means no help from rustfmt
tokens.extend(TokenStream::from_str(&idx));
// If we want rustfmt we would have to handroll our own solution or forgo indices
// (which is bad and probably not what the developer wants which is to delete code)
// tokens.extend(quote!(,));
// If we want rustfmt we would have to handroll our own solution or forgo indices
// (which is bad and probably not what the developer wants which is to delete code)
// tokens.extend(quote!(,));
} else {
tokens.append(Punct::new(',', Spacing::Alone));
}
Expand Down

0 comments on commit 96401ed

Please sign in to comment.