diff --git a/src/bin/shvcall.rs b/src/bin/shvcall.rs index 1d5ff8b..ad61f1d 100644 --- a/src/bin/shvcall.rs +++ b/src/bin/shvcall.rs @@ -272,7 +272,7 @@ async fn make_call(url: &Url, opts: &Opts) -> Result { match parse_line(line) { Ok((path, method, param)) => { let rqid = - send_request(&mut *frame_writer, &path, &method, ¶m) + send_request(&mut *frame_writer, path, method, param) .await?; loop { let resp = frame_reader.receive_message().await?; diff --git a/src/chainpack.rs b/src/chainpack.rs index 20417d8..ff83ae2 100644 --- a/src/chainpack.rs +++ b/src/chainpack.rs @@ -6,6 +6,7 @@ use std::collections::BTreeMap; use crate::reader::{Reader, ByteReader, ReadError, ReadErrorReason}; use crate::rpcvalue::{Map, IMap}; +#[allow(clippy::upper_case_acronyms)] #[warn(non_camel_case_types)] #[allow(dead_code)] pub(crate) enum PackingSchema { diff --git a/src/metamethod.rs b/src/metamethod.rs index a528a4c..2d34d21 100644 --- a/src/metamethod.rs +++ b/src/metamethod.rs @@ -28,6 +28,8 @@ impl From for Flag { #[derive(Debug, Copy, Clone, PartialEq, PartialOrd)] pub enum Access { Browse = 0, Read, Write, Command, Config, Service, SuperService, Developer, Superuser } impl Access { + // It makes sense to return Option rather than Result as the `FromStr` trait does. + #[allow(clippy::should_implement_trait)] pub fn from_str(value: &str) -> Option { match value { "bws" => Some(Access::Browse),