WIP: Add UI to application #1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/target
|
||||
*.log
|
||||
87
error.log
87
error.log
@ -1,87 +0,0 @@
|
||||
Compiling dns_lookup_project v0.1.0 (/home/ben/Documents/Projects/rust/dns_lookup_project)
|
||||
warning: unused imports: `domain`, `rdata::name`, `xfer::dns_handle`
|
||||
--> src/whois.rs:3:10
|
||||
|
|
||||
3 | rr::{domain, rdata::name},
|
||||
| ^^^^^^ ^^^^^^^^^^^
|
||||
4 | xfer::dns_handle,
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
||||
warning: unused imports: `Clear`, `Rect`, `Wrap`
|
||||
--> src/ui.rs:2:45
|
||||
|
|
||||
2 | layout::{Constraint, Direction, Layout, Rect},
|
||||
| ^^^^
|
||||
...
|
||||
5 | widgets::{Block, Borders, Clear, List, ListItem, Paragraph, Wrap},
|
||||
| ^^^^^ ^^^^
|
||||
|
||||
warning: unused import: `KeyEventKind`
|
||||
--> src/main.rs:17:68
|
||||
|
|
||||
17 | self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyEventKind,
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
warning: unused import: `stderr`
|
||||
--> src/main.rs:26:21
|
||||
|
|
||||
26 | use std::io::{self, stderr, stdout};
|
||||
| ^^^^^^
|
||||
|
||||
warning: unused import: `Styled`
|
||||
--> src/ui.rs:3:27
|
||||
|
|
||||
3 | style::{Color, Style, Styled},
|
||||
| ^^^^^^
|
||||
|
||||
warning: variants `Admin`, `Tech`, and `Billing` are never constructed
|
||||
--> src/whois.rs:12:5
|
||||
|
|
||||
10 | enum RegistrantType {
|
||||
| -------------- variants in this enum
|
||||
11 | Registrant,
|
||||
12 | Admin,
|
||||
| ^^^^^
|
||||
13 | Tech,
|
||||
| ^^^^
|
||||
14 | Billing,
|
||||
| ^^^^^^^
|
||||
|
|
||||
= note: `RegistrantType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
|
||||
= note: `#[warn(dead_code)]` on by default
|
||||
|
||||
warning: fields `e_type`, `id`, and `name` are never read
|
||||
--> src/whois.rs:73:5
|
||||
|
|
||||
72 | struct Eligibility {
|
||||
| ----------- fields in this struct
|
||||
73 | e_type: String,
|
||||
| ^^^^^^
|
||||
74 | id: String,
|
||||
| ^^
|
||||
75 | name: String,
|
||||
| ^^^^
|
||||
|
||||
warning: field `eligibility_type` is never read
|
||||
--> src/whois.rs:84:5
|
||||
|
|
||||
78 | pub struct WhoisData {
|
||||
| --------- field in this struct
|
||||
...
|
||||
84 | eligibility_type: Option<Eligibility>,
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: variant `Menu` is never constructed
|
||||
--> src/app.rs:8:5
|
||||
|
|
||||
6 | pub enum CurrentState {
|
||||
| ------------ variant in this enum
|
||||
7 | Lookup,
|
||||
8 | Menu,
|
||||
| ^^^^
|
||||
|
||||
warning: `dns_lookup_project` (bin "dns_lookup_project") generated 9 warnings (run `cargo fix --bin "dns_lookup_project"` to apply 4 suggestions)
|
||||
Finished dev [unoptimized + debuginfo] target(s) in 0.79s
|
||||
Running `target/debug/dns_lookup_project`
|
||||
Loading…
x
Reference in New Issue
Block a user