cargo fmt

This commit is contained in:
Henry Schimke
2022-12-16 13:05:08 -06:00
parent 54d68c174d
commit 903b12d9fd
21 changed files with 80 additions and 66 deletions

View File

@@ -26,7 +26,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType, ResultParser};
*
* @author Sean Owen
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct AddressBookParsedRXingResult {
names: Vec<String>,
nicknames: Vec<String>,

View File

@@ -367,8 +367,18 @@ impl CalendarParsedRXingResult {
impl PartialEq for CalendarParsedRXingResult {
fn eq(&self, other: &Self) -> bool {
self.summary == other.summary && self.start == other.start && self.startAllDay == other.startAllDay && self.end == other.end && self.endAllDay == other.endAllDay && self.location == other.location && self.organizer == other.organizer && self.attendees == other.attendees && self.description == other.description && self.latitude == other.latitude && self.longitude == other.longitude
self.summary == other.summary
&& self.start == other.start
&& self.startAllDay == other.startAllDay
&& self.end == other.end
&& self.endAllDay == other.endAllDay
&& self.location == other.location
&& self.organizer == other.organizer
&& self.attendees == other.attendees
&& self.description == other.description
&& self.latitude == other.latitude
&& self.longitude == other.longitude
}
}
impl Eq for CalendarParsedRXingResult {}
impl Eq for CalendarParsedRXingResult {}

View File

@@ -24,7 +24,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType, ResultParser};
*
* @author Sean Owen
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct EmailAddressParsedRXingResult {
tos: Vec<String>,
ccs: Vec<String>,

View File

@@ -40,7 +40,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType};
* @author Antonio Manuel Benjumea Conde, Servinform, S.A.
* @author Agustín Delgado, Servinform, S.A.
*/
#[derive(PartialEq, Eq,Debug)]
#[derive(PartialEq, Eq, Debug)]
pub struct ExpandedProductParsedRXingResult {
rawText: String,
productID: String,
@@ -71,7 +71,7 @@ impl ParsedRXingResult for ExpandedProductParsedRXingResult {
impl ExpandedProductParsedRXingResult {
pub const KILOGRAM: &'static str = "KG";
pub const POUND: &'static str = "LB";
pub const POUND: &'static str = "LB";
pub fn new(
rawText: String,

View File

@@ -120,7 +120,10 @@ impl GeoParsedRXingResult {
impl PartialEq for GeoParsedRXingResult {
fn eq(&self, other: &Self) -> bool {
self.latitude == other.latitude && self.longitude == other.longitude && self.altitude == other.altitude && self.query == other.query
self.latitude == other.latitude
&& self.longitude == other.longitude
&& self.altitude == other.altitude
&& self.query == other.query
}
}
impl Eq for GeoParsedRXingResult{}
impl Eq for GeoParsedRXingResult {}

View File

@@ -23,7 +23,7 @@ use super::ParsedRXingResult;
*
* @author jbreiden@google.com (Jeff Breidenbach)
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct ISBNParsedRXingResult {
isbn: String,
}

View File

@@ -23,7 +23,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType};
*
* @author dswitkin@google.com (Daniel Switkin)
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct ProductParsedRXingResult {
product_id: String,
normalized_product_id: String,

View File

@@ -24,7 +24,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType, ResultParser};
*
* @author Sean Owen
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct SMSParsedRXingResult {
numbers: Vec<String>,
vias: Vec<String>,

View File

@@ -23,7 +23,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType};
*
* @author Sean Owen
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct TelParsedRXingResult {
number: String,
telURI: String,

View File

@@ -24,7 +24,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType};
*
* @author Sean Owen
*/
#[derive(PartialEq, Eq,Hash, Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct TextParsedRXingResult {
text: String,
language: String,

View File

@@ -23,7 +23,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType, ResultParser, URIResultPar
*
* @author Sean Owen
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct URIParsedRXingResult {
uri: String,
title: String,

View File

@@ -21,7 +21,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType};
/**
* Represents a parsed result that encodes a Vehicle Identification Number (VIN).
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct VINParsedRXingResult {
vin: String,
world_manufacturer_id: String,

View File

@@ -23,7 +23,7 @@ use super::{ParsedRXingResult, ParsedRXingResultType, ResultParser};
*
* @author Vikram Aggarwal
*/
#[derive(PartialEq, Eq,Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct WifiParsedRXingResult {
ssid: String,
networkEncryption: String,