Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to rust 1.63 #742

Merged
merged 1 commit into from
Aug 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.62"
channel = "1.63"
components = [ "rustfmt", "clippy" ]
2 changes: 2 additions & 0 deletions shotover-proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
//! * [`transforms::Transforms`], the enum to register with (add a variant) for enabling your own transform.
//! * [`transforms::TransformsConfig`], the enum to register with (add a variant) for configuring your own transform.

#![allow(clippy::derive_partial_eq_without_eq)]

pub mod codec;
mod concurrency;
pub mod config;
Expand Down
6 changes: 3 additions & 3 deletions shotover-proxy/src/message/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ impl Message {
bytes,
message_type,
} => match message_type {
MessageType::Cassandra => Ok(Metadata::Cassandra(cassandra::raw_frame::metadata(
&*bytes,
)?)),
MessageType::Cassandra => {
Ok(Metadata::Cassandra(cassandra::raw_frame::metadata(bytes)?))
}
MessageType::Redis => Ok(Metadata::Redis),
MessageType::None => Ok(Metadata::None),
},
Expand Down
2 changes: 1 addition & 1 deletion shotover-proxy/src/transforms/protect/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub async fn encrypt(
key_management: &KeyManager,
key_id: &str,
) -> Result<Operand> {
let value = MessageValue::from(&*value);
let value = MessageValue::from(value);

let sym_key = key_management.cached_get_key(key_id, None, None).await?;

Expand Down