Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(precommit): formatting
Elijah Potter60dd649adad0
diff --git a/harper-core/src/word_metadata.rs b/harper-core/src/word_metadata.rsindex 147afa3d3..bee6741df 100644--- a/harper-core/src/word_metadata.rs+++ b/harper-core/src/word_metadata.rs@@ -8,7 +8,7 @@ pub struct WordMetadata {pub adjective: Option<AdjectiveData>,pub adverb: Option<AdverbData>,pub conjunction: Option<ConjunctionData>,- pub swear: Option<bool>,+ pub swear: Option<bool>}impl WordMetadata {@@ -20,7 +20,7 @@ impl WordMetadata {(Some(a), Some(b)) => Some(a.or(&b)),(Some(a), None) => Some(a),(None, Some(b)) => Some(b),- (None, None) => None,+ (None, None) => None}};}@@ -31,7 +31,7 @@ impl WordMetadata {adjective: merge!(self.adjective, other.adjective),adverb: merge!(self.adverb, other.adverb),conjunction: merge!(self.conjunction, other.conjunction),- swear: self.swear.or(other.swear),+ swear: self.swear.or(other.swear)}}@@ -121,13 +121,13 @@ impl WordMetadata {pub enum Tense {Past,Present,- Future,+ Future}#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, PartialOrd, Eq, Hash)]pub struct VerbData {pub is_linking: Option<bool>,- pub tense: Option<Tense>,+ pub tense: Option<Tense>}impl VerbData {@@ -135,7 +135,7 @@ impl VerbData {pub fn or(&self, other: &Self) -> Self {Self {is_linking: self.is_linking.or(other.is_linking),- tense: self.tense.or(other.tense),+ tense: self.tense.or(other.tense)}}}@@ -145,7 +145,7 @@ pub struct NounData {pub is_proper: Option<bool>,pub is_plural: Option<bool>,pub is_possessive: Option<bool>,- pub is_pronoun: Option<bool>,+ pub is_pronoun: Option<bool>}impl NounData {@@ -155,7 +155,7 @@ impl NounData {is_proper: self.is_proper.or(other.is_proper),is_plural: self.is_plural.or(other.is_plural),is_possessive: self.is_possessive.or(other.is_possessive),- is_pronoun: self.is_pronoun.or(other.is_pronoun),+ is_pronoun: self.is_pronoun.or(other.is_pronoun)}}}