Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Mar 12, 2024
1 parent abb50cf commit 542f55b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::io;
use crate::frame::{Frame, Reason, Reset};
use crate::{error, frame, stream::StreamRef};

#[doc(hiddel)]
#[doc(hidden)]
pub type ControlMessage<E> = Control<E>;
#[doc(hiddel)]
#[doc(hidden)]
pub type ControlResult = ControlAck;

#[derive(Debug)]
Expand Down Expand Up @@ -56,11 +56,11 @@ impl<E> Control<E> {
/// Default ack impl
pub fn ack(self) -> ControlAck {
match self {
ControlAck::AppError(item) => item.ack(),
ControlAck::ConnectionError(item) => item.ack(),
ControlAck::GoAway(item) => item.ack(),
ControlAck::PeerGone(item) => item.ack(),
ControlAck::Terminated(item) => item.ack(),
Control::AppError(item) => item.ack(),

Check warning on line 59 in src/control.rs

View check run for this annotation

Codecov / codecov/patch

src/control.rs#L59

Added line #L59 was not covered by tests
Control::ConnectionError(item) => item.ack(),
Control::GoAway(item) => item.ack(),
Control::PeerGone(item) => item.ack(),
Control::Terminated(item) => item.ack(),
}
}
}
Expand Down

0 comments on commit 542f55b

Please sign in to comment.