Skip to content

Commit

Permalink
Merge pull request #29 from Fluxie/topic/cargo-update
Browse files Browse the repository at this point in the history
Fixed warnings and errors after "cargo update"
  • Loading branch information
Fluxie authored Dec 19, 2023
2 parents b6950e2 + ea24ae1 commit 3aa1f40
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/decoders/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn initialize(matches: &ArgMatches) -> Result<Option<Box<dyn DecoderFactory>

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<dyn std::error::Error + Send>)
.context(ConfigurationError { option: "grpc" })?;

Expand Down
2 changes: 1 addition & 1 deletion src/ui/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ impl<T> FilterGroupState<T>

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<T>>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl<B: Backend> ProxideUi<B>
data: session,
size,
},
ui_stack: vec![Box::new(views::MainView::default())],
ui_stack: vec![Box::<views::MainView>::default()],
toasts: vec![],
input_command: None,
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/main_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<EncodedRequest>::new("Requests")
Expand Down
1 change: 0 additions & 1 deletion src/ui/views/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub use super::super::prelude::*;
pub use super::*;
pub use tui::layout::Rect;
10 changes: 5 additions & 5 deletions test/dotnet_grpc/dotnet_grpc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Google.Protobuf" Version="3.15.0" />
<PackageReference Include="Grpc" Version="2.29.0" />
<PackageReference Include="Grpc.Tools" Version="2.29.0">
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Google.Protobuf" Version="3.25.1" />
<PackageReference Include="Grpc" Version="2.46.6" />
<PackageReference Include="Grpc.Tools" Version="2.60.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 3aa1f40

Please sign in to comment.