diff --git a/src/connection.rs b/src/connection.rs index 38e0cd1..443a052 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -300,7 +300,7 @@ where log::error!("Error reading data: {}", e); break; } - Ok(c) if c == 0 => break, + Ok(0) => break, Ok(c) => c, }; if let Err(e) = write.write(&b[..count]).await { diff --git a/src/decoders/grpc.rs b/src/decoders/grpc.rs index caa23e6..4c803ed 100644 --- a/src/decoders/grpc.rs +++ b/src/decoders/grpc.rs @@ -64,7 +64,7 @@ pub fn initialize(matches: &ArgMatches) -> Result let content_ref: Vec<_> = content.iter().map(|s| s.as_str()).collect(); - let context = Context::parse(&content_ref) + let context = Context::parse(content_ref) .map_err(|e| Box::new(e) as Box) .context(ConfigurationError { option: "grpc" })?; diff --git a/src/ui/filters.rs b/src/ui/filters.rs index 0dbceb8..b884cc2 100644 --- a/src/ui/filters.rs +++ b/src/ui/filters.rs @@ -561,7 +561,7 @@ impl FilterGroupState pub fn last_key(&self) -> Option<&str> { - self.filters.keys().rev().next().map(|s| s.as_str()) + self.filters.keys().next_back().map(|s| s.as_str()) } pub fn get(&self, f: &str) -> Option<&SingleFilterState> diff --git a/src/ui/state.rs b/src/ui/state.rs index 7648f75..92248a9 100644 --- a/src/ui/state.rs +++ b/src/ui/state.rs @@ -81,7 +81,7 @@ impl ProxideUi data: session, size, }, - ui_stack: vec![Box::new(views::MainView::default())], + ui_stack: vec![Box::::default()], toasts: vec![], input_command: None, } diff --git a/src/ui/views/main_view.rs b/src/ui/views/main_view.rs index 9ff49bf..7539f89 100644 --- a/src/ui/views/main_view.rs +++ b/src/ui/views/main_view.rs @@ -19,7 +19,7 @@ impl Default for MainView fn default() -> Self { Self { - details_view: DetailsPane::default(), + details_view: DetailsPane {}, filter_pane: None, filter_pane_active: false, requests_state: TableView::::new("Requests") diff --git a/src/ui/views/prelude.rs b/src/ui/views/prelude.rs index ba7b300..dab1994 100644 --- a/src/ui/views/prelude.rs +++ b/src/ui/views/prelude.rs @@ -1,3 +1,2 @@ pub use super::super::prelude::*; -pub use super::*; pub use tui::layout::Rect; diff --git a/test/dotnet_grpc/dotnet_grpc.csproj b/test/dotnet_grpc/dotnet_grpc.csproj index d422c31..3cac606 100644 --- a/test/dotnet_grpc/dotnet_grpc.csproj +++ b/test/dotnet_grpc/dotnet_grpc.csproj @@ -2,14 +2,14 @@ Exe - netcoreapp3.0 + net6.0 - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all