Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Aug 20, 2024
1 parent a0a152b commit 2c72574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/capture/src/v0_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use crate::{
///
/// Because it must accommodate several shapes, it is inefficient in places. A v1
/// endpoint should be created, that only accepts the BatchedRequest payload shape.
#[allow(clippy::too_many_arguments)]
async fn handle_common(
state: &State<router::State>,
InsecureClientIp(ip): &InsecureClientIp,
Expand Down Expand Up @@ -323,7 +323,7 @@ pub async fn process_replay_events<'a>(
context: &'a ProcessingContext,
) -> Result<(), CaptureError> {
let snapshot_items: Vec<Value> = events
.into_iter()
.iter()
.map(|e| match e.properties.get("$snapshot_data") {
Some(Value::Array(value)) => Ok(value.to_vec()),
Some(Value::Object(value)) => Ok([Value::Object(value.clone())].to_vec()),
Expand Down

0 comments on commit 2c72574

Please sign in to comment.