aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/cmd/commands/action.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-03 14:57:47 +0000
committerFuwn <[email protected]>2024-06-03 14:57:47 +0000
commit3abe7df3fbc12a8df259f48c746f2b9344a5f33c (patch)
treeefec8803b8b65db8f56fafe884f879921091805a /crates/whirl_server/src/cmd/commands/action.rs
parentMerge pull request #153 from Whirlsplash/renovate/actions-checkout-3.x (diff)
downloadwhirl-3abe7df3fbc12a8df259f48c746f2b9344a5f33c.tar.xz
whirl-3abe7df3fbc12a8df259f48c746f2b9344a5f33c.zip
fix: bump rust and update accordinglyorigin/oldold
Diffstat (limited to 'crates/whirl_server/src/cmd/commands/action.rs')
-rw-r--r--crates/whirl_server/src/cmd/commands/action.rs3
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