Fixing trivial warnings
This commit is contained in:
parent
7c3d7fc460
commit
30e7ac8d6d
@ -111,7 +111,7 @@ impl<Row, Col, Val> Table<Row, Col, Val>
|
|||||||
///
|
///
|
||||||
/// Returns previous value (if any)
|
/// Returns previous value (if any)
|
||||||
pub fn insert(&mut self, row: Row, col: Col, val: Val) -> Option<Val> {
|
pub fn insert(&mut self, row: Row, col: Col, val: Val) -> Option<Val> {
|
||||||
self.map.entry(row).or_insert_with(|| HashMap::new()).insert(col, val)
|
self.map.entry(row).or_insert_with(HashMap::new).insert(col, val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1982,6 +1982,7 @@ mod tests {
|
|||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(feature = "dev", allow(cyclomatic_complexity))]
|
||||||
fn u256_multi_full_mul() {
|
fn u256_multi_full_mul() {
|
||||||
let result = U256([0, 0, 0, 0]).full_mul(U256([0, 0, 0, 0]));
|
let result = U256([0, 0, 0, 0]).full_mul(U256([0, 0, 0, 0]));
|
||||||
assert_eq!(U512([0, 0, 0, 0, 0, 0, 0, 0]), result);
|
assert_eq!(U512([0, 0, 0, 0, 0, 0, 0, 0]), result);
|
||||||
|
Loading…
Reference in New Issue
Block a user