Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 31, 2025
1 parent 0a04b19 commit 11801a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reactive_stores/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ where
fn unwrap(self) -> Subfield<Self, Option<Self::Output>, Self::Output>;

/// Transposes a subfield of an `Option` to an `Option` of a subfield.
fn transpose(self) -> Option<Subfield<Self, Option<Self::Output>, Self::Output>>;
fn transpose(
self,
) -> Option<Subfield<Self, Option<Self::Output>, Self::Output>>;

/// Reactively maps over the field.
///
Expand Down Expand Up @@ -55,7 +57,9 @@ where
)
}

fn transpose(self)->Option<Subfield<Self, Option<Self::Output>, Self::Output>>{
fn transpose(
self,
) -> Option<Subfield<Self, Option<Self::Output>, Self::Output>> {
if self.read().is_some() {
Some(self.unwrap())
} else {
Expand Down

0 comments on commit 11801a4

Please sign in to comment.