Replaces table.rs with cursive_table_view dependency
Silences several warnings related to cursive::view::ScrollBase, in favor of cursive::view::scroll module
Updates Cargo.toml/Cargo.lock
Also removes unused code resulting from these changes, specifically: let backend = cursive::backends::curses::pan::Backend::init().unwrap();, which appears (now or previously, unsure) unnecessary
Existing functionality is preserved in full
Resolves existing warnings below:
warning: use of deprecated struct `cursive::view::ScrollBase`: `ScrollBase` is being deprecated in favor of the view::scroll module.
--> src/bin/tui/table.rs:70:21
|
70 | use cursive::view::{ScrollBase, View};
| ^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated struct `cursive::view::ScrollBase`: `ScrollBase` is being deprecated in favor of the view::scroll module.
--> src/bin/tui/table.rs:150:14
|
150 | scrollbase: ScrollBase,
| ^^^^^^^^^^
warning: use of deprecated struct `cursive::view::ScrollBase`: `ScrollBase` is being deprecated in favor of the view::scroll module.
--> src/bin/tui/table.rs:176:16
|
176 | scrollbase: ScrollBase::new(),
| ^^^^^^^^^^
As well as a newly generated one (I think -- maybe it was present before, unsure):
warning: unused variable: `backend`
--> src/bin/tui/ui.rs:68:7
|
68 | let backend = cursive::backends::curses::pan::Backend::init().unwrap();
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_backend`
|
= note: `#[warn(unused_variables)]` on by default
Regarding removal of Backend::init() above, server seems to run exactly the same with its removal. But, please test to ensure functionality is the same. I am not a TUI-based user.
table.rs
withcursive_table_view
dependencycursive::view::ScrollBase
, in favor ofcursive::view::scroll
moduleCargo.toml
/Cargo.lock
let backend = cursive::backends::curses::pan::Backend::init().unwrap();
, which appears (now or previously, unsure) unnecessaryResolves existing warnings below:
As well as a newly generated one (I think -- maybe it was present before, unsure):
Regarding removal of
Backend::init()
above, server seems to run exactly the same with its removal. But, please test to ensure functionality is the same. I am not a TUI-based user.