Skip to content

Commit

Permalink
fix: fix new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-mealey committed Jun 25, 2024
1 parent b3e606a commit 861c56f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions mantle/rbx_cookie/src/binarycookies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ use byteorder::{BigEndian, ByteOrder, LittleEndian};
use log::warn;

pub struct Cookie {
#[allow(dead_code)]
pub prefix: String,
#[allow(dead_code)]
pub url: String,
#[allow(dead_code)]
pub is_raw: bool,
#[allow(dead_code)]
pub path: String,
#[allow(dead_code)]
pub is_secure: bool,
#[allow(dead_code)]
pub expiry: f64,
pub name: String,
pub value: String,
Expand Down
4 changes: 2 additions & 2 deletions mantle/rbx_mantle/src/resource_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ where
let mut previous_resource_order = previous_graph.get_topological_order()?;
previous_resource_order.reverse();
for resource_id in previous_resource_order.iter() {
if self.resources.get(resource_id).is_some() {
if self.resources.contains_key(resource_id) {
continue;
}

Expand Down Expand Up @@ -573,7 +573,7 @@ where
previous_resource_order.reverse();

for resource_id in previous_resource_order.iter() {
if self.resources.get(resource_id).is_some() {
if self.resources.contains_key(resource_id) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion mantle/rbx_mantle/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub async fn get_previous_state(
) -> Result<ResourceStateVLatest, String> {
let mut state = get_state(project_path, config).await?;

if state.environments.get(&environment_config.label).is_none() {
if !state.environments.contains_key(&environment_config.label) {
logger::log(format!(
"No previous state for environment {}",
Paint::cyan(environment_config.label.clone())
Expand Down

0 comments on commit 861c56f

Please sign in to comment.