diff options
| author | Fuwn <[email protected]> | 2024-06-12 01:28:50 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-12 01:28:50 +0000 |
| commit | 2f824aaa357a74390bff6410c4b0b3295162105e (patch) | |
| tree | dd94a9553112165d9e3835862cb45a6d1ac75499 /crates/whirl_server/src/cmd/extendable.rs | |
| parent | refactor(crates): update idioms (diff) | |
| download | whirl-2f824aaa357a74390bff6410c4b0b3295162105e.tar.xz whirl-2f824aaa357a74390bff6410c4b0b3295162105e.zip | |
feat(whirl_server): short object id sending
Diffstat (limited to 'crates/whirl_server/src/cmd/extendable.rs')
| -rw-r--r-- | crates/whirl_server/src/cmd/extendable.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/whirl_server/src/cmd/extendable.rs b/crates/whirl_server/src/cmd/extendable.rs index 03d7ce9..e7e63af 100644 --- a/crates/whirl_server/src/cmd/extendable.rs +++ b/crates/whirl_server/src/cmd/extendable.rs @@ -6,7 +6,10 @@ pub trait Parsable { } pub trait Creatable { - fn create(&self) -> Vec<u8>; + fn create(&self) -> Vec<u8> { vec![] } + fn create_with_short_object_id(&self, _short_object_id: u8) -> Vec<u8> { + vec![] + } } /// Having to do this makes me with there was operator overloading in Rust. |