Skip to content

Commit 93daad9

Browse files
committed
run fmt
Signed-off-by: Eren Atas <[email protected]>
1 parent 9116e92 commit 93daad9

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

crates/flagd/src/resolver/in_process/resolver/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl FileResolver {
6868
return Err(EvaluationError::builder()
6969
.code(EvaluationErrorCode::FlagNotFound)
7070
.message(format!("Flag {} not found", flag_key))
71-
.build())
71+
.build());
7272
}
7373
};
7474

crates/flagd/src/resolver/in_process/resolver/grpc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ use crate::resolver::in_process::targeting::Operator;
33
use crate::{CacheService, FlagdOptions};
44
use anyhow::Result;
55
use async_trait::async_trait;
6-
use open_feature::provider::{FeatureProvider, ProviderMetadata, ResolutionDetails};
76
use open_feature::Value as OpenFeatureValue;
7+
use open_feature::provider::{FeatureProvider, ProviderMetadata, ResolutionDetails};
88
use open_feature::{EvaluationContext, EvaluationError, EvaluationErrorCode, StructValue, Value};
99
use serde_json::Value as JsonValue;
1010
use std::sync::Arc;
1111

12-
use crate::resolver::in_process::storage::connector::grpc::GrpcStreamConnector;
1312
use crate::resolver::in_process::storage::FlagStore;
13+
use crate::resolver::in_process::storage::connector::grpc::GrpcStreamConnector;
1414

1515
pub struct InProcessResolver {
1616
store: Arc<FlagStore>,
@@ -134,7 +134,7 @@ impl InProcessResolver {
134134
return Err(EvaluationError::builder()
135135
.code(EvaluationErrorCode::FlagNotFound)
136136
.message(format!("Flag {} not found", flag_key))
137-
.build())
137+
.build());
138138
}
139139
};
140140

@@ -194,7 +194,7 @@ impl InProcessResolver {
194194
variant: Some(variant),
195195
reason: Some(open_feature::EvaluationReason::TargetingMatch),
196196
flag_metadata: None,
197-
})
197+
});
198198
}
199199
};
200200
cache.add(flag_key, context, cache_value).await;

crates/flagd/src/resolver/in_process/storage/connector/file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use super::{Connector, QueuePayload, QueuePayloadType};
22
use anyhow::Result;
33
use std::path::PathBuf;
4-
use std::sync::atomic::{AtomicBool, Ordering};
54
use std::sync::Arc;
6-
use tokio::sync::mpsc::{channel, Receiver, Sender};
5+
use std::sync::atomic::{AtomicBool, Ordering};
76
use tokio::sync::Mutex;
7+
use tokio::sync::mpsc::{Receiver, Sender, channel};
88
use tokio::time::Duration;
99
use tracing::{debug, error};
1010

crates/flagd/src/resolver/in_process/storage/connector/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ pub mod grpc;
33

44
use std::collections::HashMap;
55
use std::sync::Arc;
6-
use tokio::sync::mpsc::Receiver;
76
use tokio::sync::Mutex;
7+
use tokio::sync::mpsc::Receiver;
88

99
#[derive(Debug)]
1010
pub struct QueuePayload {

crates/flagd/src/resolver/in_process/storage/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::resolver::in_process::model::feature_flag::FeatureFlag;
66
use crate::resolver::in_process::model::flag_parser::FlagParser;
77
use std::collections::HashMap;
88
use std::sync::Arc;
9-
use tokio::sync::mpsc::{channel, Receiver, Sender};
109
use tokio::sync::RwLock;
10+
use tokio::sync::mpsc::{Receiver, Sender, channel};
1111

1212
#[derive(Debug, Clone, PartialEq)]
1313
pub enum StorageState {

crates/flagd/tests/cache_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use common::{Flagd, FLAGD_CONFIG, FLAGD_OFREP_PORT, FLAGD_PORT, FLAGD_SYNC_PORT};
1+
use common::{FLAGD_CONFIG, FLAGD_OFREP_PORT, FLAGD_PORT, FLAGD_SYNC_PORT, Flagd};
22
use open_feature::provider::FeatureProvider;
33
use open_feature::{EvaluationContext, Value};
44
use open_feature_flagd::{CacheSettings, CacheType, FlagdOptions, FlagdProvider, ResolverType};

crates/flagd/tests/color_palette_experiment_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use common::{Flagd, FLAGD_SYNC_PORT};
1+
use common::{FLAGD_SYNC_PORT, Flagd};
22

33
use open_feature::provider::FeatureProvider;
44
use open_feature::{EvaluationContext, EvaluationReason};

crates/flagd/tests/e2e_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use common::{Flagd, FLAGD_CONFIG, FLAGD_OFREP_PORT, FLAGD_PORT};
1+
use common::{FLAGD_CONFIG, FLAGD_OFREP_PORT, FLAGD_PORT, Flagd};
22
use open_feature::provider::FeatureProvider;
33
use open_feature::{EvaluationContext, Value};
44
use open_feature_flagd::{FlagdOptions, FlagdProvider, ResolverType};

crates/flagd/tests/envoy_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use common::{Envoy, Flagd, ENVOY_CONFIG, ENVOY_PORT, FLAGD_PORT, FLAGD_SYNC_PORT};
2-
use open_feature::provider::FeatureProvider;
1+
use common::{ENVOY_CONFIG, ENVOY_PORT, Envoy, FLAGD_PORT, FLAGD_SYNC_PORT, Flagd};
32
use open_feature::EvaluationContext;
3+
use open_feature::provider::FeatureProvider;
44
use open_feature_flagd::{FlagdOptions, FlagdProvider, ResolverType};
55
use test_log::test;
6-
use testcontainers::runners::AsyncRunner;
76
use testcontainers::ImageExt;
7+
use testcontainers::runners::AsyncRunner;
88

99
mod common;
1010

crates/flagd/tests/in_process_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::time::Duration;
22

3-
use common::{Flagd, FLAGD_CONFIG, FLAGD_SYNC_PORT};
3+
use common::{FLAGD_CONFIG, FLAGD_SYNC_PORT, Flagd};
44
use open_feature::provider::FeatureProvider;
55
use open_feature::{EvaluationContext, Value};
66
use open_feature_flagd::{FlagdOptions, FlagdProvider, ResolverType};

0 commit comments

Comments
 (0)