chore: cargo fmt, clippy
This commit is contained in:
committed by
Sean McArthur
parent
e72d6dc189
commit
f46840f3fa
@@ -18,12 +18,12 @@ use std::fmt;
|
||||
#[macro_escape]
|
||||
macro_rules! unpack_octets_4 {
|
||||
// TODO: Get rid of this macro
|
||||
($buf:expr, $offset:expr, $tip:ty) => (
|
||||
(($buf[$offset + 0] as $tip) << 24) |
|
||||
(($buf[$offset + 1] as $tip) << 16) |
|
||||
(($buf[$offset + 2] as $tip) << 8) |
|
||||
(($buf[$offset + 3] as $tip) << 0)
|
||||
);
|
||||
($buf:expr, $offset:expr, $tip:ty) => {
|
||||
(($buf[$offset + 0] as $tip) << 24)
|
||||
| (($buf[$offset + 1] as $tip) << 16)
|
||||
| (($buf[$offset + 2] as $tip) << 8)
|
||||
| (($buf[$offset + 3] as $tip) << 0)
|
||||
};
|
||||
}
|
||||
|
||||
mod data;
|
||||
@@ -54,11 +54,8 @@ pub use self::window_update::WindowUpdate;
|
||||
// Re-export some constants
|
||||
|
||||
pub use self::settings::{
|
||||
DEFAULT_INITIAL_WINDOW_SIZE,
|
||||
DEFAULT_MAX_FRAME_SIZE,
|
||||
DEFAULT_SETTINGS_HEADER_TABLE_SIZE,
|
||||
MAX_INITIAL_WINDOW_SIZE,
|
||||
MAX_MAX_FRAME_SIZE,
|
||||
DEFAULT_INITIAL_WINDOW_SIZE, DEFAULT_MAX_FRAME_SIZE, DEFAULT_SETTINGS_HEADER_TABLE_SIZE,
|
||||
MAX_INITIAL_WINDOW_SIZE, MAX_MAX_FRAME_SIZE,
|
||||
};
|
||||
|
||||
pub type FrameSize = u32;
|
||||
|
||||
Reference in New Issue
Block a user