Skip to content

Commit

Permalink
chore: CurlService -> CodeExportService
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaTechnolog committed Oct 28, 2024
1 parent 0c615f9 commit eedd8cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/widgets/export_tab/curl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/export_tab/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down

0 comments on commit eedd8cb

Please sign in to comment.