diff --git a/native/proto/src/lib.rs b/native/proto/src/lib.rs index 44101965d..266bf62db 100644 --- a/native/proto/src/lib.rs +++ b/native/proto/src/lib.rs @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +// The clippy throws an error if the reference clone not wrapped into `Arc::clone` +// The lint makes easier for code reader/reviewer separate references clones from more heavyweight ones #![deny(clippy::clone_on_ref_ptr)] // Include generated modules from .proto files. diff --git a/native/spark-expr/src/lib.rs b/native/spark-expr/src/lib.rs index 1b1ddbe91..9fb16f94d 100644 --- a/native/spark-expr/src/lib.rs +++ b/native/spark-expr/src/lib.rs @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + +// The clippy throws an error if the reference clone not wrapped into `Arc::clone` +// The lint makes easier for code reader/reviewer separate references clones from more heavyweight ones #![deny(clippy::clone_on_ref_ptr)] mod cast;