mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
standardize empty string to String::default()
This replaces "".to_owned() "".to_string() and String::from("")
This commit is contained in:
@@ -139,7 +139,7 @@ static FOUR_DIGIT_DATA_LENGTH: Lazy<HashMap<String, DataLength>> = Lazy::new(||
|
||||
|
||||
pub fn parseFieldsInGeneralPurpose(rawInformation: &str) -> Result<String, Exceptions> {
|
||||
if rawInformation.is_empty() {
|
||||
return Ok("".to_owned());
|
||||
return Ok(String::default());
|
||||
}
|
||||
|
||||
// Processing 2-digit AIs
|
||||
|
||||
Reference in New Issue
Block a user