mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
standardize empty string to String::default()
This replaces "".to_owned() "".to_string() and String::from("")
This commit is contained in:
@@ -509,7 +509,7 @@ impl<T: Reader> AbstractBlackBoxTestCase<T> {
|
||||
read_to_string(&file).expect("ok")
|
||||
}
|
||||
} else {
|
||||
"".to_owned()
|
||||
String::default()
|
||||
};
|
||||
// let string_contents = read_to_string(&file)?; //new String(Files.readAllBytes(file), charset);
|
||||
if string_contents.ends_with('\n') {
|
||||
|
||||
@@ -651,7 +651,7 @@ impl<T: MultipleBarcodeReader + Reader> PDF417MultiImageSpanAbstractBlackBoxTest
|
||||
read_to_string(&file).expect("ok")
|
||||
}
|
||||
} else {
|
||||
"".to_owned()
|
||||
String::default()
|
||||
};
|
||||
// let string_contents = read_to_string(&file)?; //new String(Files.readAllBytes(file), charset);
|
||||
if string_contents.ends_with('\n') {
|
||||
|
||||
Reference in New Issue
Block a user