Skip to content

Commit

Permalink
refactor: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSopenaBallesteros committed Aug 21, 2024
1 parent 858eb7c commit a19956e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ pub mod transitions {
operation: &str,
xname: &str,
) -> Result<Transition, Error> {
log::info!("Create PCS transition '{}'", operation);
log::debug!("Create PCS transition request:\n{:#?}", operation);
log::info!("Create PCS transition '{}' on '{}'", operation, xname);

let client_builder = reqwest::Client::builder()
.add_root_certificate(reqwest::Certificate::from_pem(shasta_root_cert)?);
Expand Down Expand Up @@ -404,8 +403,6 @@ pub mod power_cap {
pub mod r#struct {
use serde::{Deserialize, Serialize};

use crate::pcs::transitions::r#struct::Operation;

#[derive(Debug, Serialize, Deserialize)]
pub struct PowerCapTaskList {
pub tasks: Vec<PowerCapTaskInfo>,
Expand Down

0 comments on commit a19956e

Please sign in to comment.