Skip to content

Commit 1c065d1

Browse files
committed
Minor: consistently apply clippy::clone_on_ref_ptr in all crates
1 parent 5224194 commit 1c065d1

File tree

12 files changed

+14
-0
lines changed

12 files changed

+14
-0
lines changed

datafusion/catalog-listing/src/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
2121
)]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
2324

2425
pub mod helpers;

datafusion/catalog/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
2121
)]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
2324

2425
//! Interfaces and default implementations of catalogs and schemas.
2526
//!

datafusion/datasource-avro/src/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
2121
)]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
2324

2425
//! An [Avro](https://avro.apache.org/) based [`FileSource`](datafusion_datasource::file::FileSource) implementation and related functionality.
2526

datafusion/datasource-csv/src/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
19+
1820
pub mod file_format;
1921
pub mod source;
2022

datafusion/datasource-json/src/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
1718

1819
pub mod file_format;
1920
pub mod source;

datafusion/datasource-parquet/src/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
19+
1820
//! [`ParquetExec`] FileSource for reading Parquet files
1921
2022
pub mod access_plan;

datafusion/datasource/src/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
2121
)]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
2324

2425
//! A table that uses the `ObjectStore` listing capability
2526
//! to get the list of files to process.

datafusion/functions-table/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
2121
)]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
2324

2425
pub mod generate_series;
2526

datafusion/functions-window-common/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
2121
)]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
2324

2425
//! Common user-defined window functionality for [DataFusion]
2526
//!

datafusion/functions-window/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
2121
)]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
23+
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
2324

2425
//! Window Function packages for [DataFusion].
2526
//!

0 commit comments

Comments
 (0)