cargo fmt

This commit is contained in:
Henry Schimke
2022-12-17 18:47:54 -06:00
parent d9b0d46f71
commit 2a27b182c1
7 changed files with 675 additions and 580 deletions

View File

@@ -25,7 +25,7 @@ use crate::Exceptions;
* *
* @author Alex Geller * @author Alex Geller
*/ */
pub trait ECIInput:Display { pub trait ECIInput: Display {
/** /**
* Returns the length of this input. The length is the number * Returns the length of this input. The length is the number
* of {@code byte}s in or ECIs in the sequence. * of {@code byte}s in or ECIs in the sequence.

View File

@@ -1241,7 +1241,7 @@ impl Edge {
if self.input.isECI(self.fromPosition)? { if self.input.isECI(self.fromPosition)? {
return Ok(Self::getBytes2( return Ok(Self::getBytes2(
241, 241,
self.input.getECIValue(self.fromPosition as usize)? as u32+ 1, self.input.getECIValue(self.fromPosition as usize)? as u32 + 1,
)); ));
} else if isExtendedASCII( } else if isExtendedASCII(
self.input.charAt(self.fromPosition as usize)?, self.input.charAt(self.fromPosition as usize)?,

View File

@@ -1,6 +1,4 @@
mod pdf_417_detector_result; mod pdf_417_detector_result;
pub use pdf_417_detector_result::*; pub use pdf_417_detector_result::*;
pub mod detector; pub mod detector;

View File

@@ -14,15 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
/** /**
* Represents possible PDF417 barcode compaction types. * Represents possible PDF417 barcode compaction types.
*/ */
pub enum Compaction { pub enum Compaction {
AUTO = 0,
AUTO=0, TEXT = 1,
TEXT=1, BYTE = 2,
BYTE=2, NUMERIC = 3,
NUMERIC=3
} }

View File

@@ -1,4 +1,3 @@
mod compaction; mod compaction;
pub use compaction::*; pub use compaction::*;
@@ -9,7 +8,7 @@ mod barcode_batrix;
pub use barcode_batrix::*; pub use barcode_batrix::*;
mod dimensions; mod dimensions;
pub use dimensions::*; pub use dimensions::*;
pub mod pdf_417_error_correction; pub mod pdf_417_error_correction;
pub mod pdf_417_high_level_encoder; pub mod pdf_417_high_level_encoder;

File diff suppressed because it is too large Load Diff

View File

@@ -2,4 +2,4 @@ pub mod decoder;
pub mod detector; pub mod detector;
pub mod encoder; pub mod encoder;
pub mod pdf_417_common; pub mod pdf_417_common;