From 1b7ae46360b6beb40f6bd0fc77a5ea9a5e93e5ce Mon Sep 17 00:00:00 2001 From: apparentorder Date: Thu, 24 Aug 2023 15:24:45 +0200 Subject: [PATCH] fix formatting --- packages/hurl/src/http/client.rs | 4 ++-- packages/hurl/src/runner/error.rs | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/hurl/src/http/client.rs b/packages/hurl/src/http/client.rs index 66d798c13..d988b75ca 100644 --- a/packages/hurl/src/http/client.rs +++ b/packages/hurl/src/http/client.rs @@ -180,10 +180,10 @@ impl Client { curl_sys::CURLE_UNKNOWN_OPTION => Err(HttpError::LibcurlUnknownOption { option: "aws-sigv4".to_string(), minimum_version: "7.75.0".to_string(), - url: url + url, }), _ => Err(e.into()), - } + }; } } diff --git a/packages/hurl/src/runner/error.rs b/packages/hurl/src/runner/error.rs index 909943129..136f56a75 100644 --- a/packages/hurl/src/runner/error.rs +++ b/packages/hurl/src/runner/error.rs @@ -192,8 +192,14 @@ impl From for RunnerError { message: format!("({code}) {description}"), url, }, - HttpError::LibcurlUnknownOption { option, minimum_version, url } => RunnerError::HttpConnection { - message: format!("Option {option} requires libcurl version {minimum_version} or higher"), + HttpError::LibcurlUnknownOption { + option, + minimum_version, + url, + } => RunnerError::HttpConnection { + message: format!( + "Option {option} requires libcurl version {minimum_version} or higher" + ), url, }, HttpError::StatuslineIsMissing { url } => RunnerError::HttpConnection {