Skip to content

Commit a810fdd

Browse files
chore(pre-commit.ci): auto fixes from pre-commit hooks
1 parent af9e751 commit a810fdd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cot/src/form/fields.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ impl<T: Integer + Display> Display for IntegerField<T> {
440440
tag.attr("placeholder", placeholder);
441441
}
442442
if let Some(readonly) = self.custom_options.readonly {
443-
if readonly{
443+
if readonly {
444444
tag.bool_attr("readonly");
445445
}
446446
}
@@ -819,7 +819,7 @@ impl<T: Float + Display> Display for FloatField<T> {
819819
tag.attr("placeholder", placeholder);
820820
}
821821
if let Some(readonly) = self.custom_options.readonly {
822-
if readonly{
822+
if readonly {
823823
tag.bool_attr("readonly");
824824
}
825825
}

cot/src/form/fields/attrs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ pub enum AutoCapitalize {
7474
impl AutoCapitalize {
7575
fn as_str(self) -> &'static str {
7676
match self {
77-
AutoCapitalize::Off => "off",
78-
AutoCapitalize::On => "on",
79-
AutoCapitalize::Words => "words",
77+
AutoCapitalize::Off => "off",
78+
AutoCapitalize::On => "on",
79+
AutoCapitalize::Words => "words",
8080
AutoCapitalize::Characters => "characters",
8181
}
8282
}

0 commit comments

Comments
 (0)