Skip to content

Commit

Permalink
chore: updates for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedld committed Mar 29, 2024
1 parent e821148 commit ea3efd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/substrait/src/serializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ use substrait::proto::Plan;
use std::fs::OpenOptions;
use std::io::{Read, Write};

#[allow(clippy::suspicious_open_options)]
#[allow(clippy::nonsensical_open_options)]
pub async fn serialize(sql: &str, ctx: &SessionContext, path: &str) -> Result<()> {
let protobuf_out = serialize_bytes(sql, ctx).await;
let mut file = OpenOptions::new().create(true).write(true).open(path)?;
let mut file = OpenOptions::new().truncate(true).write(true).open(path)?;
file.write_all(&protobuf_out?)?;
Ok(())
}
Expand Down

0 comments on commit ea3efd7

Please sign in to comment.