Skip to content

Fix redundant .clone().clone()#196

Open
aritra0342 wants to merge 2 commits intopathwaycom:mainfrom
aritra0342:main
Open

Fix redundant .clone().clone()#196
aritra0342 wants to merge 2 commits intopathwaycom:mainfrom
aritra0342:main

Conversation

@aritra0342
Copy link

  1. Fix redundant .clone().clone()
    File: src/engine/dataflow/operators/time_column.rs:267

#Current:
time.clone().clone(),

Fix:

time.clone(),
Impact: Removes redundant operation, cleaner code

@CLAassistant
Copy link

CLAassistant commented Mar 4, 2026

CLA assistant check
All committers have signed the CLA.

File: src/connectors/data_format.rs:159

// Current:
path.clone().map_or("no JsonPointer path specified".to_string(), |path| format!("path {path}"))

// Fix:
path.as_ref().map_or("no JsonPointer path specified", |p| p.as_str())
Impact: Eliminates unnecessary string allocations in error path

3. Replace panic with proper error handling
@zxqfd555
Copy link
Collaborator

zxqfd555 commented Mar 4, 2026

Hello @aritra0342,
Please make sure pre-commit checks are passing.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants