Skip to content

Commit 8f6bdd9

Browse files
committed
ref: cargo fmt & clippy
1 parent b1e80d2 commit 8f6bdd9

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

src/flow_service/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::flow_definition::Reader;
12
use tucana::{
23
aquila::{
34
DataTypeUpdateRequest, FlowTypeUpdateRequest, RuntimeFunctionDefinitionUpdateRequest,
@@ -7,7 +8,6 @@ use tucana::{
78
},
89
shared::{DefinitionDataType as DataType, FlowType, RuntimeFunctionDefinition},
910
};
10-
use crate::flow_definition::Reader;
1111

1212
pub struct FlowUpdateService {
1313
aquila_url: String,
@@ -27,8 +27,7 @@ impl FlowUpdateService {
2727

2828
let reader = Reader::configure(definition_path.to_string(), true, vec![], None);
2929

30-
let features = match reader.read_features()
31-
{
30+
let features = match reader.read_features() {
3231
Ok(features) => features,
3332
Err(error) => {
3433
log::error!("Error occurred while reading definitions: {:?}", error);

src/flow_validator/rule/contains_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use super::violation::ContainsKeyRuleViolation;
22
use super::violation::DataTypeRuleError;
33
use super::violation::DataTypeRuleViolation;
44
use super::violation::MissingDataTypeRuleDefinition;
5+
use crate::flow_validator::{get_data_type_by_id, verify_data_type_rules};
56
use tucana::shared::ExecutionDataType;
67
use tucana::shared::ExecutionDataTypeContainsKeyRuleConfig;
78
use tucana::shared::Value;
89
use tucana::shared::helper::path::expect_kind;
910
use tucana::shared::value::Kind;
10-
use crate::flow_validator::{get_data_type_by_id, verify_data_type_rules};
1111

1212
/// # Data Type Validation Behavior
1313
///

src/flow_validator/rule/contains_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use super::violation::{DataTypeRuleError, DataTypeRuleViolation, InvalidFormatRuleViolation};
2+
use crate::flow_validator::{get_data_type_by_id, verify_data_type_rules};
23
use tucana::shared::{
34
ExecutionDataType, ExecutionDataTypeContainsTypeRuleConfig, Value, value::Kind,
45
};
5-
use crate::flow_validator::{get_data_type_by_id, verify_data_type_rules};
66

77
/// # Item of Collection Validation
88
///

src/flow_validator/rule/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ pub mod contains_type;
33
pub mod item_of_collection;
44
pub mod number_range;
55
pub mod regex;
6-
pub mod violation;
6+
pub mod violation;

src/flow_validator/rule/regex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use tucana::shared::{DataTypeRegexRuleConfig, Value, value::Kind};
21
use super::violation::{
32
DataTypeRuleError, DataTypeRuleViolation, RegexRuleTypeNotAcceptedViolation, RegexRuleViolation,
43
};
4+
use tucana::shared::{DataTypeRegexRuleConfig, Value, value::Kind};
55

66
/// # Regex Pattern Validation
77
///

0 commit comments

Comments
 (0)