Skip to content

Commit

Permalink
style: clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable committed Nov 29, 2024
1 parent d1e1e83 commit 5f8778b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/alerts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub struct Message {
impl Message {
// checks if message (with a column name) is valid (i.e. the column name is present in the schema)
pub fn valid(&self, schema: &Schema, column: &str) -> bool {
return get_field(&schema.fields, column).is_some();
get_field(&schema.fields, column).is_some()
}

pub fn extract_column_names(&self) -> Vec<&str> {
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/http/modal/utils/logstream_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async fn update_stream(
return Ok(req.headers().clone());
}
validate_and_update_custom_partition(stream_name, custom_partition).await?;
return Ok(req.headers().clone());
Ok(req.headers().clone())
}

async fn validate_and_update_custom_partition(
Expand Down
1 change: 0 additions & 1 deletion src/handlers/http/otel/opentelemetry.proto.resource.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
pub attributes: Option<Vec<KeyValue>>,
/// dropped_attributes_count is the number of dropped attributes. If the value is 0, then
/// no attributes were dropped.
#[serde(rename = "droppedAttributesCount")]
pub dropped_attributes_count: Option<u32>,
}
Expand Down
1 change: 0 additions & 1 deletion src/utils/arrow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ use serde_json::{Map, Value};
/// }
/// ```
///
/// Replaces columns in a record batch with new arrays.
///
/// # Arguments
Expand Down

0 comments on commit 5f8778b

Please sign in to comment.