Browse Source

set doc attribute on Exchange variants

master
Jonathan Strong 2 years ago
parent
commit
64e9a48e89
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/crypto.rs

+ 4
- 1
src/crypto.rs View File

@@ -703,7 +703,10 @@ macro_rules! make_exchange {
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
#[repr(u8)] #[repr(u8)]
pub enum Exchange { pub enum Exchange {
$($ticker = $code),*
$(
#[doc = $name]
$ticker = $code
),*
} }


impl Exchange { impl Exchange {


Loading…
Cancel
Save