Skip to content

Commit 5f8778b

Browse files
style: clippy fixes
1 parent d1e1e83 commit 5f8778b

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

src/alerts/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub struct Message {
136136
impl Message {
137137
// checks if message (with a column name) is valid (i.e. the column name is present in the schema)
138138
pub fn valid(&self, schema: &Schema, column: &str) -> bool {
139-
return get_field(&schema.fields, column).is_some();
139+
get_field(&schema.fields, column).is_some()
140140
}
141141

142142
pub fn extract_column_names(&self) -> Vec<&str> {

src/handlers/http/modal/utils/logstream_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async fn update_stream(
150150
return Ok(req.headers().clone());
151151
}
152152
validate_and_update_custom_partition(stream_name, custom_partition).await?;
153-
return Ok(req.headers().clone());
153+
Ok(req.headers().clone())
154154
}
155155

156156
async fn validate_and_update_custom_partition(

src/handlers/http/otel/opentelemetry.proto.resource.v1.rs

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
pub attributes: Option<Vec<KeyValue>>,
3232
/// dropped_attributes_count is the number of dropped attributes. If the value is 0, then
3333
/// no attributes were dropped.
34-
3534
#[serde(rename = "droppedAttributesCount")]
3635
pub dropped_attributes_count: Option<u32>,
3736
}

src/utils/arrow/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ use serde_json::{Map, Value};
5656
/// }
5757
/// ```
5858
///
59-
6059
/// Replaces columns in a record batch with new arrays.
6160
///
6261
/// # Arguments

0 commit comments

Comments
 (0)