Skip to content

Commit

Permalink
Simplify string generation in unit test
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
timsaucer and alamb authored Feb 21, 2025
1 parent bc47186 commit 31bcdeb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions datafusion/ffi/src/execution_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,7 @@ mod tests {
&foreign_plan,
);

let mut buf = String::new();
write!(&mut buf, "{}", display.one_line()).unwrap();
let buf = buf.trim();
let buf = display.one_line().to_string().trim();
assert_eq!(buf, "FFI_ExecutionPlan(number_of_children=0)");

Ok(())
Expand Down

0 comments on commit 31bcdeb

Please sign in to comment.