Skip to content

Commit

Permalink
cargo fmt loco-new
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Nov 28, 2024
1 parent 4ac3c6e commit 3850a23
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
6 changes: 3 additions & 3 deletions loco-new/tests/templates/auth.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use super::*;

use crate::assertion;
use loco::settings;
use rstest::rstest;

use super::*;
use crate::assertion;

pub fn run_generator(enable_auth: bool) -> TestGenerator {
let settings = settings::Settings {
package_name: "loco-app-test".to_string(),
Expand Down
4 changes: 2 additions & 2 deletions loco-new/tests/templates/features.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;
use loco::settings;

use super::*;
use crate::assertion;
use loco::settings;

pub fn run_generator(default_features: bool, names: &[&str]) -> TestGenerator {
let settings = settings::Settings {
Expand Down
6 changes: 3 additions & 3 deletions loco-new/tests/templates/initializers.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use super::*;

use crate::assertion;
use loco::settings;
use rstest::rstest;

use super::*;
use crate::assertion;

pub fn run_generator(initializers: Option<settings::Initializers>) -> TestGenerator {
let settings = settings::Settings {
initializers,
Expand Down
6 changes: 3 additions & 3 deletions loco-new/tests/templates/mailer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use super::*;

use crate::assertion;
use loco::settings;
use rstest::rstest;

use super::*;
use crate::assertion;

pub fn run_generator(enable_mailer: bool) -> TestGenerator {
let settings = settings::Settings {
mailer: enable_mailer,
Expand Down
9 changes: 5 additions & 4 deletions loco-new/tests/templates/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
use std::{
path::{Path, PathBuf},
sync::Arc,
};

use loco::{
generator::{self, executer::FileSystem, template},
settings,
};
use rand::{rngs::StdRng, SeedableRng};
use std::{
path::{Path, PathBuf},
sync::Arc,
};

mod asset;
mod auth;
Expand Down

0 comments on commit 3850a23

Please sign in to comment.