Skip to content

Commit

Permalink
fix clippy noise
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Nov 18, 2024
1 parent 9b5ff38 commit 5499a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ use std::collections::HashMap;
use std::fmt::{Debug, Formatter};
use std::sync::Arc;

use crate::configuration::action_set::ActionSet;
use crate::configuration::action_set_index::ActionSetIndex;
use crate::data;
use crate::data::Predicate;
use crate::service::GrpcService;
use cel_interpreter::functions::time::duration;
use cel_interpreter::Value;
use serde::de::{Error, Visitor};
Expand Down
6 changes: 3 additions & 3 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ impl GrpcService {
}

pub fn get_timeout(&self) -> Duration {
return self.service.timeout.0;
self.service.timeout.0
}

pub fn get_service_type(&self) -> ServiceType {
return self.service.service_type.clone();
self.service.service_type.clone()
}

pub fn get_failure_mode(&self) -> FailureMode {
return self.service.failure_mode.clone();
self.service.failure_mode
}

fn endpoint(&self) -> &str {
Expand Down

0 comments on commit 5499a6a

Please sign in to comment.