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:
parent
2fcd65ad97
commit
84dd04cf60
|
@ -158,11 +158,11 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn from_vb() {
|
fn from_vb() {
|
||||||
let vb = Weight::from_vb(1).expect("expected weight unit");
|
let w = Weight::from_vb(1).expect("expected weight unit");
|
||||||
assert_eq!(Weight(4), vb);
|
assert_eq!(Weight(4), w);
|
||||||
|
|
||||||
let vb = Weight::from_vb(u64::MAX);
|
let w = Weight::from_vb(u64::MAX);
|
||||||
assert_eq!(None, vb);
|
assert_eq!(None, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -173,8 +173,8 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn from_vb_unchecked() {
|
fn from_vb_unchecked() {
|
||||||
let vb = Weight::from_vb_unchecked(1);
|
let w = Weight::from_vb_unchecked(1);
|
||||||
assert_eq!(Weight(4), vb);
|
assert_eq!(Weight(4), w);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue