mirror of
https://github.com/veeso/termscp.git
synced 2026-09-27 06:21:22 -07:00
lint
This commit is contained in:
@@ -400,7 +400,7 @@ impl RadioS3NewPathStyle {
|
||||
.foreground(color)
|
||||
.rewind(true)
|
||||
.title("New path style", Alignment::Left)
|
||||
.value(if new_path_style { 0 } else { 1 }),
|
||||
.value(usize::from(!new_path_style)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,15 +22,11 @@ impl AuthActivity {
|
||||
// Headers
|
||||
assert!(self
|
||||
.app
|
||||
.mount(Id::Title, Box::new(components::Title::default()), vec![])
|
||||
.mount(Id::Title, Box::<components::Title>::default(), vec![])
|
||||
.is_ok());
|
||||
assert!(self
|
||||
.app
|
||||
.mount(
|
||||
Id::Subtitle,
|
||||
Box::new(components::Subtitle::default()),
|
||||
vec![]
|
||||
)
|
||||
.mount(Id::Subtitle, Box::<components::Subtitle>::default(), vec![])
|
||||
.is_ok());
|
||||
// Footer
|
||||
assert!(self
|
||||
@@ -975,7 +971,7 @@ impl AuthActivity {
|
||||
.app
|
||||
.mount(
|
||||
Id::GlobalListener,
|
||||
Box::new(components::GlobalListener::default()),
|
||||
Box::<components::GlobalListener>::default(),
|
||||
vec![
|
||||
Sub::new(
|
||||
SubEventClause::Keyboard(KeyEvent {
|
||||
|
||||
Reference in New Issue
Block a user