Add rust lint CI job.
Some checks failed
Check / Check Rust (pull_request) Failing after 21s

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

View file

@ -12,7 +12,8 @@ static mut VFS_CLIENT: Option<VFSClient> = None;
fn get_client() -> &'static mut VFSClient {
unsafe {
if let None = VFS_CLIENT {
#[allow(static_mut_refs)]
if VFS_CLIENT.is_none() {
let endpoint_cap = yellowstone_yunq::from_init_endpoint()
.get_endpoint(&yellowstone_yunq::GetEndpointRequest {
endpoint_name: "victoriafalls".to_string(),
@ -21,6 +22,7 @@ fn get_client() -> &'static mut VFSClient {
VFS_CLIENT = Some(VFSClient::new(Capability::take(endpoint_cap.endpoint)));
}
#[allow(static_mut_refs)]
VFS_CLIENT.as_mut().unwrap()
}
}

View file

@ -35,7 +35,7 @@ impl VFSServerHandler for VictoriaFallsServerImpl {
let mut inode_num = 2; // Start with root.
while let Some(path_token) = tokens.next() {
for path_token in tokens {
inode_num = self.find_path_in_dir(inode_num, path_token)?;
}
@ -57,7 +57,7 @@ impl VFSServerHandler for VictoriaFallsServerImpl {
let mut inode_num = 2; // Start with root.
while let Some(path_token) = tokens.next() {
for path_token in tokens {
inode_num = self.find_path_in_dir(inode_num, path_token)?;
}