diff --git a/crates/polars/tests/it/io/avro/read_async.rs b/crates/polars/tests/it/io/avro/read_async.rs index d50fd7595c58..049910c0ce28 100644 --- a/crates/polars/tests/it/io/avro/read_async.rs +++ b/crates/polars/tests/it/io/avro/read_async.rs @@ -26,16 +26,25 @@ async fn test(codec: Codec) -> PolarsResult<()> { Ok(()) } +// Issue with clippy interacting with tokio. See: +// https://github.com/rust-lang/rust-clippy/issues/13458 +#[allow(clippy::needless_return)] #[tokio::test] async fn read_without_codec() -> PolarsResult<()> { test(Codec::Null).await } +// Issue with clippy interacting with tokio. See: +// https://github.com/rust-lang/rust-clippy/issues/13458 +#[allow(clippy::needless_return)] #[tokio::test] async fn read_deflate() -> PolarsResult<()> { test(Codec::Deflate).await } +// Issue with clippy interacting with tokio. See: +// https://github.com/rust-lang/rust-clippy/issues/13458 +#[allow(clippy::needless_return)] #[tokio::test] async fn read_snappy() -> PolarsResult<()> { test(Codec::Snappy).await diff --git a/crates/polars/tests/it/io/avro/write_async.rs b/crates/polars/tests/it/io/avro/write_async.rs index 77cb212f89db..1be109e2733a 100644 --- a/crates/polars/tests/it/io/avro/write_async.rs +++ b/crates/polars/tests/it/io/avro/write_async.rs @@ -42,6 +42,9 @@ async fn roundtrip(compression: Option) -> PolarsResult<()> { Ok(()) } +// Issue with clippy interacting with tokio. See: +// https://github.com/rust-lang/rust-clippy/issues/13458 +#[allow(clippy::needless_return)] #[tokio::test] async fn no_compression() -> PolarsResult<()> { roundtrip(None).await diff --git a/docs/source/src/rust/user-guide/io/cloud-storage.rs b/docs/source/src/rust/user-guide/io/cloud-storage.rs index 0c34f86bb2be..5c297739eeee 100644 --- a/docs/source/src/rust/user-guide/io/cloud-storage.rs +++ b/docs/source/src/rust/user-guide/io/cloud-storage.rs @@ -1,3 +1,7 @@ +// Issue with clippy interacting with tokio. See: +// https://github.com/rust-lang/rust-clippy/issues/13458 +#![allow(clippy::needless_return)] + // --8<-- [start:read_parquet] use aws_config::BehaviorVersion; use polars::prelude::*;