We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd286fa commit a3e97a2Copy full SHA for a3e97a2
src/array.rs
@@ -84,7 +84,7 @@ impl<T> Array<T> {
84
data: Vec<T>,
85
dimensions: Vec<Dimension>,
86
) -> Result<Array<T>, Error> {
87
- if !(data.is_empty() && dimensions.is_empty())
+ if (!data.is_empty() && !dimensions.is_empty())
88
|| data.len() as i32 != dimensions.iter().fold(1, |acc, i| acc * i.len)
89
{
90
return Err(Error::new(ErrorKind::Other, "size mismatch"));
0 commit comments