}
pub fn mount(rocket_instance: Rocket) -> Rocket {
- return rocket_instance.mount("/", routes![
+ rocket_instance.mount("/", routes![
api_grab,
api_ungrab,
api_raise,
api_move,
- ]);
+ ])
}
while let Some(l) = self.read.next() {
let l = l.context("read")?;
decode_and_process(&mut self, &l)?;
+ #[allow(clippy::write_with_newline)]
write!(&mut self.write, "\n")?;
self.write.flush()?;
}
fn map_auth_err(&self, ae: AuthorisationError) -> MgmtError {
eprintln!("command connection {}: authorisation error: {}",
self.desc, ae.0);
- return MgmtError::AuthorisationError;
+ MgmtError::AuthorisationError
}
}
+#![allow(clippy::many_single_char_names)]
use crate::imports::*;
#![feature(proc_macro_hygiene, decl_macro)]
#![feature(slice_strip)]
+#![allow(clippy::redundant_closure_call)]
+
pub mod imports;
pub mod global;
pub mod pieces;
}
pub fn mount(rocket_instance: Rocket) -> Rocket {
- return rocket_instance.mount("/", routes![
+ rocket_instance.mount("/", routes![
session,
- ]);
+ ])
}
}
impl ser::Error for Error {
- fn custom<T>(_msg: T) -> Self { return Error::WasCustomSerialize; }
+ fn custom<T>(_msg: T) -> Self { Error::WasCustomSerialize }
}
impl fmt::Display for Error {