Skip to content

Commit

Permalink
TOML lint + cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
re-gius committed Jan 7, 2025
1 parent c6a87fc commit 9e92079
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions substrate/frame/examples/view-functions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ default = ["std"]
std = [
"codec/std",
"frame-benchmarking?/std",
"frame-metadata/std",
"frame-support/std",
"frame-system/std",
"log/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-metadata-ir/std",
"sp-runtime/std",
"sp-std/std",
"sp-metadata-ir/std",
"frame-metadata/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
Expand All @@ -60,4 +60,4 @@ try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"sp-runtime/try-runtime",
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use syn::spanned::Spanned;
pub fn expand_view_functions(def: &Def) -> TokenStream {
let (span, where_clause, view_fns, docs) = match def.view_functions.as_ref() {
Some(view_fns) => (
view_fns.attr_span.clone(),
view_fns.attr_span,
view_fns.where_clause.clone(),
view_fns.view_functions.clone(),
view_fns.docs.clone(),
Expand Down

0 comments on commit 9e92079

Please sign in to comment.