Correctly evaluate access key
This commit is contained in:
parent
6d13907588
commit
fc39e3295b
1 changed files with 1 additions and 4 deletions
|
|
@ -31,10 +31,7 @@ const RNEX_DEFAULT_PORT: u16 = match u16::from_str_radix(env!("RNEX_DEFAULT_PORT
|
||||||
Err(_) => panic!("unable to get default port from env"),
|
Err(_) => panic!("unable to get default port from env"),
|
||||||
};
|
};
|
||||||
|
|
||||||
const RNEX_ACCESS_KEY: u16 = match u16::from_str_radix(env!("RNEX_ACCESS_KEY"), 10) {
|
const RNEX_ACCESS_KEY: &'static str = env!("RNEX_ACCESS_KEY");
|
||||||
Ok(v) => v,
|
|
||||||
Err(_) => panic!("unable to get access key from env"),
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue