Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 21, 2024
1 parent 0dd580d commit 1937468
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fastn-resolved/src/web_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ impl WebComponentDefinition {

pub fn js(&self) -> Option<&str> {
match self.js {
fastn_resolved::PropertyValue::Value { ref value, .. } => match value {
fastn_resolved::Value::String { text } => Some(text),
_ => None,
},
fastn_resolved::PropertyValue::Value {
value: fastn_resolved::Value::String { ref text },
..
} => Some(text),
_ => None,
}
}
Expand Down

0 comments on commit 1937468

Please sign in to comment.