Skip to content

Commit

Permalink
Fix build warnings, rename to main
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmonday committed Jul 19, 2023
1 parent c32d9db commit a6623ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -2,9 +2,9 @@ name: Rust

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

env:
CARGO_TERM_COLOR: always
Expand Down
4 changes: 2 additions & 2 deletions pnet_macros_support/src/packet.rs
Expand Up @@ -39,12 +39,12 @@ impl<T: Packet> Packet for alloc::boxed::Box<T> {
impl<T: Packet> Packet for &T {
/// Retrieve the underlying buffer for the packet.
fn packet(&self) -> &[u8] {
self.deref().packet()
(*self).packet()
}

/// Retrieve the payload for the packet.
fn payload(&self) -> &[u8] {
self.deref().payload()
(*self).payload()
}
}

Expand Down
2 changes: 1 addition & 1 deletion pnet_packet/src/sll2.rs
Expand Up @@ -15,7 +15,7 @@ pub struct SLL2 {
pub protocol_type: EtherType,

#[construct_with(u16)]
pub reserverd: u16be,
pub reserved: u16be,

#[construct_with(u32)]
pub interface_index: u32be,
Expand Down

0 comments on commit a6623ac

Please sign in to comment.