Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Mar 6, 2025
1 parent 439270c commit 3450438
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/polars-io/src/utils/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ use crate::{is_cloud_url, resolve_homedir};

/// Holds a non-async writeable file, abstracted over local files or cloud files.
///
/// This is used via `DerefMut` - i.e. `&mut *writeable` provides a trait object
/// implementing [`std::io::Write`] .
/// This implements `DerefMut` to a trait object implementing [`std::io::Write`].
///
/// Also see: `Writeable::try_into_async_writeable` and `AsyncWriteable`.
pub enum Writeable {
Expand Down Expand Up @@ -178,8 +177,7 @@ mod async_writeable {

/// Holds an async writeable file, abstracted over local files or cloud files.
///
/// This is used via `DerefMut` - i.e. `&mut *async_writeable` provides a trait object
/// implementing [`tokio::io::AsyncWrite`] .
/// This implements `DerefMut` to a trait object implementing [`tokio::io::AsyncWrite`].
///
/// Note: It is important that you do not call `shutdown()` on the deref'ed `AsyncWrite` object.
/// You should instead call the [`AsyncWriteable::close`] at the end.
Expand Down

0 comments on commit 3450438

Please sign in to comment.