mirror of
https://github.com/veeso/termscp.git
synced 2026-09-27 22:41:19 -07:00
chore: enable safe clippy pedantic lints
This commit is contained in:
@@ -87,7 +87,11 @@ impl MockComponent for Log {
|
||||
self.props.set(attr, value);
|
||||
if matches!(attr, Attribute::Content) {
|
||||
self.states.set_list_len(
|
||||
match self.props.get(Attribute::Content).map(|x| x.unwrap_table()) {
|
||||
match self
|
||||
.props
|
||||
.get(Attribute::Content)
|
||||
.map(AttrValue::unwrap_table)
|
||||
{
|
||||
Some(spans) => spans.len(),
|
||||
_ => 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user