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

Commit 769c2e4

Browse files
committed
Rerun linter on linked project
Updates from child project
1 parent f089c3a commit 769c2e4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.maintain/frame-weight-template.hbs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
5252
Weight::from_ref_time({{underscore benchmark.base_weight}})
5353
{{#each benchmark.component_weight as |cw|}}
5454
// Standard Error: {{underscore cw.error}}
55-
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}} as u64))
55+
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}}.into()))
5656
{{/each}}
5757
{{#if (ne benchmark.base_reads "0")}}
5858
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}}))
5959
{{/if}}
6060
{{#each benchmark.component_reads as |cr|}}
61-
.saturating_add(T::DbWeight::get().reads(({{cr.slope}}).saturating_mul({{cr.name}} as u64)))
61+
.saturating_add(T::DbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
6262
{{/each}}
6363
{{#if (ne benchmark.base_writes "0")}}
6464
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}}))
6565
{{/if}}
6666
{{#each benchmark.component_writes as |cw|}}
67-
.saturating_add(T::DbWeight::get().writes(({{cw.slope}}).saturating_mul({{cw.name}} as u64)))
67+
.saturating_add(T::DbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
6868
{{/each}}
6969
}
7070
{{/each}}
@@ -85,22 +85,22 @@ impl WeightInfo for () {
8585
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
8686
) -> Weight {
8787
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
88-
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
88+
Weight::from_ref_time({{underscore benchmark.base_weight}})
8989
{{#each benchmark.component_weight as |cw|}}
9090
// Standard Error: {{underscore cw.error}}
91-
.saturating_add(Weight::from_ref_time({{underscore cw.slope}} as u64).saturating_mul({{cw.name}} as u64))
91+
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}}.into()))
9292
{{/each}}
9393
{{#if (ne benchmark.base_reads "0")}}
94-
.saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}} as u64))
94+
.saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}}))
9595
{{/if}}
9696
{{#each benchmark.component_reads as |cr|}}
97-
.saturating_add(RocksDbWeight::get().reads(({{cr.slope}} as u64).saturating_mul({{cr.name}} as u64)))
97+
.saturating_add(RocksDbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
9898
{{/each}}
9999
{{#if (ne benchmark.base_writes "0")}}
100-
.saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}} as u64))
100+
.saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}}))
101101
{{/if}}
102102
{{#each benchmark.component_writes as |cw|}}
103-
.saturating_add(RocksDbWeight::get().writes(({{cw.slope}} as u64).saturating_mul({{cw.name}} as u64)))
103+
.saturating_add(RocksDbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
104104
{{/each}}
105105
}
106106
{{/each}}

utils/frame/benchmarking-cli/src/pallet/template.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ impl<T: frame_system::Config> {{pallet}}::WeightInfo for WeightInfo<T> {
3737
Weight::from_ref_time({{underscore benchmark.base_weight}})
3838
{{#each benchmark.component_weight as |cw|}}
3939
// Standard Error: {{underscore cw.error}}
40-
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}} as u64))
40+
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}}.into()))
4141
{{/each}}
4242
{{#if (ne benchmark.base_reads "0")}}
4343
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}}))
4444
{{/if}}
4545
{{#each benchmark.component_reads as |cr|}}
46-
.saturating_add(T::DbWeight::get().reads(({{cr.slope}}).saturating_mul({{cr.name}} as u64)))
46+
.saturating_add(T::DbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
4747
{{/each}}
4848
{{#if (ne benchmark.base_writes "0")}}
4949
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}}))
5050
{{/if}}
5151
{{#each benchmark.component_writes as |cw|}}
52-
.saturating_add(T::DbWeight::get().writes(({{cw.slope}}).saturating_mul({{cw.name}} as u64)))
52+
.saturating_add(T::DbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
5353
{{/each}}
5454
}
5555
{{/each}}

0 commit comments

Comments
 (0)