clippy --fix

This commit is contained in:
Henry Schimke
2023-01-06 10:57:24 -06:00
parent 6d41475786
commit dbd2ec9a39
5 changed files with 10 additions and 14 deletions

View File

@@ -104,7 +104,7 @@ impl GenericGF {
*/
pub fn buildMonomial(source: GenericGFRef, degree: usize, coefficient: i32) -> GenericGFPoly {
if coefficient == 0 {
return GenericGFPoly::new(source, &vec![0]).unwrap();
return GenericGFPoly::new(source, &[0]).unwrap();
}
let mut coefficients = vec![0; degree + 1];
coefficients[0] = coefficient;