chore: cargo fmt, clippy
This commit is contained in:
committed by
Sean McArthur
parent
e72d6dc189
commit
f46840f3fa
@@ -1,7 +1,7 @@
|
||||
use crate::codec::RecvError;
|
||||
use crate::frame;
|
||||
use crate::proto::*;
|
||||
use std::task::{Poll, Context};
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Settings {
|
||||
@@ -13,9 +13,7 @@ pub(crate) struct Settings {
|
||||
|
||||
impl Settings {
|
||||
pub fn new() -> Self {
|
||||
Settings {
|
||||
pending: None,
|
||||
}
|
||||
Settings { pending: None }
|
||||
}
|
||||
|
||||
pub fn recv_settings(&mut self, frame: frame::Settings) {
|
||||
@@ -52,9 +50,7 @@ impl Settings {
|
||||
let frame = frame::Settings::ack();
|
||||
|
||||
// Buffer the settings frame
|
||||
dst.buffer(frame.into())
|
||||
.ok()
|
||||
.expect("invalid settings frame");
|
||||
dst.buffer(frame.into()).expect("invalid settings frame");
|
||||
|
||||
log::trace!("ACK sent; applying settings");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user