diff --git a/persistence/database/database_traits/src/database_operates/db_op_impls.rs b/persistence/database/database_traits/src/database_operates/db_op_impls.rs index d39a67c1a..439b17d8f 100644 --- a/persistence/database/database_traits/src/database_operates/db_op_impls.rs +++ b/persistence/database/database_traits/src/database_operates/db_op_impls.rs @@ -32,10 +32,12 @@ where C: GetDatabaseTransaction, { type Error = C::Error; - type Transaction<'s> = C::Transaction<'s> + type Transaction<'s> + = C::Transaction<'s> where Self: 's; - type TransactionFuture<'s> = C::TransactionFuture<'s> + type TransactionFuture<'s> + = C::TransactionFuture<'s> where Self: 's; @@ -48,7 +50,8 @@ impl GetDatabaseCollection for DatabaseOperate where C: GetDatabaseCollection, { - type CollectGuard<'s> =C::CollectGuard<'s> + type CollectGuard<'s> + = C::CollectGuard<'s> where Self: 's; type Error = C::Error; diff --git a/persistence/models/mongo-models/src/ceobe/operation/tool_link/models/mod.rs b/persistence/models/mongo-models/src/ceobe/operation/tool_link/models/mod.rs index ae84915b9..e4bdee0e4 100644 --- a/persistence/models/mongo-models/src/ceobe/operation/tool_link/models/mod.rs +++ b/persistence/models/mongo-models/src/ceobe/operation/tool_link/models/mod.rs @@ -20,7 +20,7 @@ pub struct LocalizedTags { } #[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)] -#[serde(rename_all_fields = "SCREAMING_SNAKE_CASE")] +#[serde(rename_all = "SCREAMING_SNAKE_CASE")] pub enum Region { ChinaMainland, ExceptChinaMainland, diff --git a/src/bootstrap/decorator.rs b/src/bootstrap/decorator.rs index 292957535..f43480920 100644 --- a/src/bootstrap/decorator.rs +++ b/src/bootstrap/decorator.rs @@ -15,9 +15,11 @@ pub struct TimeoutDecorator( ); impl PrepareDecorator for TimeoutDecorator { - type OutFut< Fut, T> = LocalBoxFuture<'static,Result> - - where Fut: Future> +'static,T: 'static; + type OutFut + = LocalBoxFuture<'static, Result> + where + Fut: Future> + 'static, + T: 'static; fn decorator( &self, src: &'static str, in_fut: Fut,