Skip to content

Commit

Permalink
appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser999 authored and marc-casperlabs committed Mar 14, 2024
1 parent 4c71055 commit 9db8b5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/protocol/multiframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub(super) enum MultiframeReceiver {

/// The outcome of a multiframe acceptance.
#[derive(Debug)]
#[allow(clippy::enum_variant_names)]
pub(crate) enum CompletedFrame {
/// A new multi-frame transfer was started.
NewMultiFrame,
Expand Down
4 changes: 2 additions & 2 deletions src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ mod tests {
async fn run_echo_client<const N: usize>(
mut rpc_server: JulietRpcServer<N, ReadHalf<DuplexStream>, WriteHalf<DuplexStream>>,
) {
while let Some(inc) = rpc_server
if let Some(inc) = rpc_server
.next_request()
.await
.expect("client rpc_server error")
Expand Down Expand Up @@ -1576,7 +1576,7 @@ mod tests {
let mut bob = CompleteSetup::new(&rpc_builder, bob_stream);

let alice_join_handle = tokio::spawn(async move {
while let Some(incoming_request) = alice
if let Some(incoming_request) = alice
.server
.next_request()
.await
Expand Down

0 comments on commit 9db8b5e

Please sign in to comment.