diff options
| author | Max Audron <audron@cocaine.farm> | 2021-12-02 18:16:19 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-12-02 18:16:19 +0100 |
| commit | 2c6df7abbf4c695e35dc92f508dfb8205579599f (patch) | |
| tree | ff7a140472cb6128c671542f62d80be73f022e51 /src/util.rs | |
| parent | make client and server features mutually exclusive (diff) | |
add basic buffersyncer impl
Diffstat (limited to 'src/util.rs')
| -rw-r--r-- | src/util.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs index 581340d..5f52573 100644 --- a/src/util.rs +++ b/src/util.rs @@ -57,3 +57,10 @@ macro_rules! s { std::string::String::from($values) }; } + +#[macro_export] +macro_rules! get_param { + ( $msg:expr ) => { + $msg.params.remove(0).try_into().unwrap() + }; +} |
