Skip to content

Commit

Permalink
Add a doc comment for writer
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmturner committed Jan 9, 2025
1 parent a0266c9 commit ace08c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ where {
}
}

/// We use an Enum for this because of limitations with using trait objects and the `close` method
/// on a writer taking `self` as an argument which requires a size for the trait object which is
/// not known at compile time.
#[allow(clippy::large_enum_variant)]
enum AnyWriter {
Csv(csv::writer::Writer<File>),
Expand Down

0 comments on commit ace08c7

Please sign in to comment.