Rename variable assignment

The type created after assighnment is a Weight type.  Using a var name
vb which is short for virtual byte is incorrect.
This commit is contained in:
yancy 2024-07-13 14:48:36 -05:00
parent 2fcd65ad97
commit 84dd04cf60
1 changed files with 6 additions and 6 deletions

View File

@ -158,11 +158,11 @@ mod tests {
#[test]
fn from_vb() {
let vb = Weight::from_vb(1).expect("expected weight unit");
assert_eq!(Weight(4), vb);
let w = Weight::from_vb(1).expect("expected weight unit");
assert_eq!(Weight(4), w);
let vb = Weight::from_vb(u64::MAX);
assert_eq!(None, vb);
let w = Weight::from_vb(u64::MAX);
assert_eq!(None, w);
}
#[test]
@ -173,8 +173,8 @@ mod tests {
#[test]
fn from_vb_unchecked() {
let vb = Weight::from_vb_unchecked(1);
assert_eq!(Weight(4), vb);
let w = Weight::from_vb_unchecked(1);
assert_eq!(Weight(4), w);
}
#[test]