mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
Implement clippy suggestions
This commit is contained in:
@@ -163,8 +163,8 @@ impl ECIStringBuilder {
|
||||
/**
|
||||
* @return true iff nothing has been appended
|
||||
*/
|
||||
pub fn is_empty(&self) -> bool {
|
||||
return self.current_bytes.is_empty() && self.result.is_empty();
|
||||
pub fn is_empty(&mut self) -> bool {
|
||||
self.current_bytes.is_empty() && self.result.is_empty()
|
||||
}
|
||||
|
||||
pub fn build_result(mut self) -> Self {
|
||||
@@ -180,3 +180,9 @@ impl fmt::Display for ECIStringBuilder {
|
||||
write!(f, "{}", self.result)
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for ECIStringBuilder {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user