Skip to content

Commit

Permalink
small fixes and update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-caddet committed Oct 4, 2023
1 parent f8ae0a2 commit e3f5211
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/target
result*
.envrc
/.direnv
72 changes: 54 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
};

nixConfig = {
substituters = [
extra-substituters = [
"https://francois-caddet.cachix.org"
];
trusted-public-keys = [
extra-trusted-public-keys = [
"francois-caddet.cachix.org-1:WYf/RzhEA7GWBOo623fwh9LqXyOQrrZVide6P15GlmQ="
];
};
Expand Down
4 changes: 2 additions & 2 deletions src/packets/zmtp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Greeting {
}

#[repr(C, packed)]
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Version {
pub major: u8,
pub minor: u8,
Expand All @@ -28,7 +28,7 @@ const fn zerro_padded<const M: usize, const N: usize>(arr: &[u8; M]) -> [u8; N]
}

#[repr(C, packed)]
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Mechanism(pub [u8; 20]);

impl Mechanism {
Expand Down

0 comments on commit e3f5211

Please sign in to comment.