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

Rename from_components to from_parts #12473

Merged
merged 4 commits into from
Oct 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion primitives/weights/src/weight_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Weight {
}

/// Construct [`Weight`] with weight components, namely reference time and storage size weights.
KiChjang marked this conversation as resolved.
Show resolved Hide resolved
pub const fn from_components(ref_time: u64, proof_size: u64) -> Self {
pub const fn from_parts(ref_time: u64, proof_size: u64) -> Self {
Self { ref_time, proof_size }
}

Expand Down