Add rust lint CI job. (#9)
All checks were successful
Check / Check Rust (push) Successful in 20s
All checks were successful
Check / Check Rust (push) Successful in 20s
Additionally fix the many lint errors that are occurring. (or disable them). Reviewed-on: #9 Co-authored-by: Drew Galbraith <drew@tiramisu.one> Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
parent
311755c812
commit
1a48911745
30 changed files with 177 additions and 108 deletions
|
|
@ -10,10 +10,12 @@ static mut YELLOWSTONE_INIT: Option<YellowstoneClient> = None;
|
|||
|
||||
pub fn from_init_endpoint() -> &'static mut YellowstoneClient {
|
||||
unsafe {
|
||||
if let None = YELLOWSTONE_INIT {
|
||||
#[allow(static_mut_refs)]
|
||||
if YELLOWSTONE_INIT.is_none() {
|
||||
YELLOWSTONE_INIT = Some(YellowstoneClient::new(Capability::take(INIT_ENDPOINT)));
|
||||
}
|
||||
|
||||
#[allow(static_mut_refs)]
|
||||
YELLOWSTONE_INIT.as_mut().unwrap()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue