mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
remove more needless String conversions
This commit is contained in:
@@ -49,9 +49,7 @@ impl GenericGFPoly {
|
||||
*/
|
||||
pub fn new(field: GenericGFRef, coefficients: &[i32]) -> Result<Self, Exceptions> {
|
||||
if coefficients.is_empty() {
|
||||
return Err(Exceptions::illegalArgument(String::from(
|
||||
"coefficients cannot be empty",
|
||||
)));
|
||||
return Err(Exceptions::illegalArgument("coefficients cannot be empty"));
|
||||
}
|
||||
Ok(Self {
|
||||
field,
|
||||
|
||||
Reference in New Issue
Block a user