diff options
| author | Fuwn <[email protected]> | 2024-06-03 14:57:47 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-03 14:57:47 -0700 |
| commit | a6b766541ae58053ae705e0559d1a1ae8212634b (patch) | |
| tree | aeb55206e77679b2f5e1f47fae7f1bda5c6df5b9 /crates/whirl_server/src/cmd/commands/action.rs | |
| parent | Merge pull request #153 from Whirlsplash/renovate/actions-checkout-3.x (diff) | |
| download | whirl-old.tar.xz whirl-old.zip | |
fix: bump rust and update accordinglyold
Diffstat (limited to 'crates/whirl_server/src/cmd/commands/action.rs')
| -rw-r--r-- | crates/whirl_server/src/cmd/commands/action.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/whirl_server/src/cmd/commands/action.rs b/crates/whirl_server/src/cmd/commands/action.rs index ac67eb2..6303528 100644 --- a/crates/whirl_server/src/cmd/commands/action.rs +++ b/crates/whirl_server/src/cmd/commands/action.rs @@ -8,7 +8,6 @@ // of actions, it will be of2m-ified. use bytes::{BufMut, BytesMut}; -use num_traits::AsPrimitive; pub fn create() -> Vec<u8> { let mut command = BytesMut::new(); @@ -20,7 +19,7 @@ pub fn create() -> Vec<u8> { // Convert to vector and insert the length let mut command_as_vec = command.to_vec(); - command_as_vec.insert(0, command.len().as_(): u8 + 1); + command_as_vec.insert(0, command.len() as u8 + 1); // Return bytes command_as_vec |