From eedd8cbfcbb8a9cfb7235bee7e094a60ea653d59 Mon Sep 17 00:00:00 2001 From: Gabriel Guerra Date: Mon, 28 Oct 2024 08:11:03 -0400 Subject: [PATCH] chore: `CurlService` -> `CodeExportService` --- src/widgets/export_tab/curl.rs | 4 ++-- src/widgets/export_tab/service.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/export_tab/curl.rs b/src/widgets/export_tab/curl.rs index 33e0d0e..6bb6bf0 100644 --- a/src/widgets/export_tab/curl.rs +++ b/src/widgets/export_tab/curl.rs @@ -19,7 +19,7 @@ use glib::{object::ObjectExt, subclass::types::ObjectSubclassIsExt}; use crate::entities::{EndpointData, RequestExportType}; -use super::{BaseExportPaneExt, CurlService}; +use super::{BaseExportPaneExt, CodeExportService}; mod imp { use std::cell::RefCell; @@ -236,7 +236,7 @@ impl BaseExportPaneExt for CurlExportPane { fn set_request_export_type(&self, req_export_type: &RequestExportType) { if let RequestExportType::Curl(data) = req_export_type { - let service = CurlService::new(data.clone()); + let service = CodeExportService::new(data.clone()); let imp = self.imp(); if let Ok(command) = service.generate() { diff --git a/src/widgets/export_tab/service.rs b/src/widgets/export_tab/service.rs index 3a30486..ce09b96 100644 --- a/src/widgets/export_tab/service.rs +++ b/src/widgets/export_tab/service.rs @@ -21,11 +21,11 @@ use crate::client::BoundRequest; use crate::entities::{EndpointData, RequestPayload}; use crate::error::CarteroError; -pub struct CurlService { +pub struct CodeExportService { endpoint_data: EndpointData, } -impl CurlService { +impl CodeExportService { pub fn new(endpoint_data: EndpointData) -> Self { Self { endpoint_data } }