Skip to content

Commit

Permalink
Delete useless clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamiel committed Nov 27, 2023
1 parent b1f7fc0 commit ce245c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/hurl/src/runner/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub enum RunnerError {
/// Textual Output for runner errors
impl hurl_core::error::Error for Error {
fn source_info(&self) -> SourceInfo {
self.clone().source_info
self.source_info
}

fn description(&self) -> String {
Expand Down
3 changes: 1 addition & 2 deletions packages/hurlfmt/src/linter/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ use crate::linter::LinterError;
///
/// Textual Output for linter errors
///
///
impl Error for linter::Error {
fn source_info(&self) -> SourceInfo {
self.clone().source_info
self.source_info
}

fn description(&self) -> String {
Expand Down

0 comments on commit ce245c2

Please sign in to comment.