mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
cargo fmt
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright 2022 ZXing authors
|
||||
*
|
||||
@@ -24,7 +23,7 @@
|
||||
|
||||
use std::fmt;
|
||||
|
||||
use encoding::{EncodingRef, Encoding};
|
||||
use encoding::{Encoding, EncodingRef};
|
||||
|
||||
use crate::Exceptions;
|
||||
|
||||
@@ -81,7 +80,11 @@ impl ECIStringBuilder {
|
||||
* @param value string to append
|
||||
*/
|
||||
pub fn append_string(&mut self, value: &str) {
|
||||
value.as_bytes().iter().map(|b| self.current_bytes.push(*b)).count();
|
||||
value
|
||||
.as_bytes()
|
||||
.iter()
|
||||
.map(|b| self.current_bytes.push(*b))
|
||||
.count();
|
||||
// self.current_bytes.push(value.as_bytes());
|
||||
}
|
||||
|
||||
@@ -170,4 +173,4 @@ impl fmt::Display for ECIStringBuilder {
|
||||
//self.encodeCurrentBytesIfAny();
|
||||
write!(f, "{}", self.result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user