Skip to content

Commit 52d7117

Browse files
committed
fmt
1 parent 9ec66fe commit 52d7117

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

build_tools/rustfmt.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ if [ -d ./build_tools ]; then
1111
echo "cargo +nightly fmt --manifest-path ${target} --all"
1212
cargo +nightly fmt --manifest-path "${target}" --all
1313
done
14+
15+
examples=(`find examples -type f -name 'Cargo.toml'`)
16+
for example in "${examples[@]}"; do
17+
echo "cargo +nightly fmt --manifest-path ${example} --all"
18+
cargo +nightly fmt --manifest-path "${example}" --all
19+
done
1420
else
1521
echo "Please execute this script from the repository root."
1622
fi

examples/axum_example/api/src/graphql/query_root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use async_graphql::dynamic::*;
22
use axum_example_service::sea_orm;
33
use axum_example_service::sea_orm::DatabaseConnection;
44
use entity::post;
5-
use seaography::{Builder, BuilderContext, lazy_static, async_graphql};
5+
use seaography::{async_graphql, lazy_static, Builder, BuilderContext};
66

77
seaography::register_entity_modules!([post]);
88

examples/axum_example/api/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
mod flash;
22
mod graphql;
33

4-
use sea_orm_pro::{ConfigParser, JsonCfg};
5-
use seaography::async_graphql;
64
use async_graphql::http::{playground_source, GraphQLPlaygroundConfig};
75
use async_graphql_axum::{GraphQLRequest, GraphQLResponse};
86
use axum::{
@@ -19,6 +17,8 @@ use axum_example_service::{
1917
use entity::post;
2018
use flash::{get_flash_cookie, post_response, PostResponse};
2119
use migration::{Migrator, MigratorTrait};
20+
use sea_orm_pro::{ConfigParser, JsonCfg};
21+
use seaography::async_graphql;
2222
use serde::{Deserialize, Serialize};
2323
use std::env;
2424
use tera::Tera;

examples/loco_example/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ use std::path::Path;
33
use async_trait::async_trait;
44
use loco_rs::{
55
app::{AppContext, Hooks},
6+
bgworker::{BackgroundWorker, Queue},
67
boot::{create_app, BootResult, StartMode},
8+
config::Config,
79
controller::AppRoutes,
810
db::{self, truncate_table},
911
environment::Environment,
1012
task::Tasks,
11-
bgworker::{BackgroundWorker, Queue},
12-
config::Config,
1313
Result,
1414
};
1515
use migration::Migrator;

0 commit comments

Comments
 (0)