Skip to content

Commit

Permalink
cargo fmt and cargo fix
Browse files Browse the repository at this point in the history
cargo fix
  • Loading branch information
NexVeridian committed Oct 26, 2024
1 parent b0efc80 commit 912d218
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/demo/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ impl Hooks for App {
}

// <snip id="app-initializers">
async fn initializers(ctx: &AppContext) -> Result<Vec<Box<dyn Initializer>>> {
let mut initializers: Vec<Box<dyn Initializer>> = vec![
async fn initializers(_ctx: &AppContext) -> Result<Vec<Box<dyn Initializer>>> {
let initializers: Vec<Box<dyn Initializer>> = vec![
Box::new(initializers::axum_session::AxumSessionInitializer),
Box::new(initializers::view_engine::ViewEngineInitializer),
Box::new(initializers::hello_view_engine::HelloViewEngineInitializer),
Expand Down
3 changes: 2 additions & 1 deletion examples/demo/src/controllers/cache.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::models::users;
use loco_rs::prelude::*;
use serde::{Deserialize, Serialize};

use crate::models::users;
#[derive(Serialize, Deserialize)]
pub struct CacheResponse {
value: Option<String>,
Expand Down
3 changes: 1 addition & 2 deletions examples/demo/src/controllers/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,5 @@ pub fn routes() -> Routes {
}

pub fn api_routes() -> OpenApiRouter<AppContext> {
OpenApiRouter::new()
.routes(routes!(album))
OpenApiRouter::new().routes(routes!(album))
}
1 change: 0 additions & 1 deletion examples/demo/src/models/roles.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use loco_rs::prelude::*;
use sea_orm::entity::prelude::*;

pub use super::_entities::roles::{self, ActiveModel, Entity, Model};
use crate::models::{_entities::sea_orm_active_enums::RolesName, users, users_roles};
Expand Down
3 changes: 2 additions & 1 deletion src/mailer/email_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ impl EmailSender {
///
/// # Errors
///
/// When email doesn't send successfully or has an error to build the message
/// When email doesn't send successfully or has an error to build the
/// message
pub async fn mail(&self, email: &Email) -> Result<()> {
let content = MultiPart::alternative_plain_html(email.text.clone(), email.html.clone());
let mut builder = Message::builder()
Expand Down

0 comments on commit 912d218

Please sign in to comment.