Add rust lint CI job.
All checks were successful
Check / Check Rust (pull_request) Successful in 22s

This commit is contained in:
Drew 2025-12-13 23:16:33 -08:00
parent 311755c812
commit 000c9403d5
30 changed files with 178 additions and 108 deletions

View file

@ -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()
}
}