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
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue