🎨 Format files
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
use crate::common::PrimaryKey;
|
use crate::common::PrimaryKey;
|
||||||
use deluxe::{extract_attributes, ExtractAttributes};
|
use deluxe::{ExtractAttributes, extract_attributes};
|
||||||
use proc_macro2::Ident;
|
use proc_macro2::Ident;
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
|
|
||||||
use crate::attributes::{extract_attrs, Attributes};
|
use crate::attributes::{Attributes, extract_attrs};
|
||||||
use crate::common::PrimaryKey;
|
use crate::common::PrimaryKey;
|
||||||
use crate::create::derive_diesel_crud_create_impl;
|
use crate::create::derive_diesel_crud_create_impl;
|
||||||
use crate::delete::derive_diesel_crud_delete_impl;
|
use crate::delete::derive_diesel_crud_delete_impl;
|
||||||
@ -8,7 +8,7 @@ use crate::list::derive_diesel_crud_list_impl;
|
|||||||
use crate::read::derive_diesel_crud_read_impl;
|
use crate::read::derive_diesel_crud_read_impl;
|
||||||
use crate::update::derive_diesel_crud_update_impl;
|
use crate::update::derive_diesel_crud_update_impl;
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
use syn::{parse_macro_input, DeriveInput};
|
use syn::{DeriveInput, parse_macro_input};
|
||||||
|
|
||||||
mod attributes;
|
mod attributes;
|
||||||
mod common;
|
mod common;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
use {
|
use {
|
||||||
proc_macro::TokenStream,
|
proc_macro::TokenStream,
|
||||||
syn::{parse_macro_input, DeriveInput},
|
syn::{DeriveInput, parse_macro_input},
|
||||||
};
|
};
|
||||||
|
|
||||||
mod derive;
|
mod derive;
|
||||||
|
@ -10,8 +10,8 @@ use std::{
|
|||||||
|
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
use syn::{
|
use syn::{
|
||||||
parse::{Parse, ParseStream},
|
|
||||||
LitStr, Token,
|
LitStr, Token,
|
||||||
|
parse::{Parse, ParseStream},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn read_files_to_string_impl(args: Args) -> TokenStream {
|
pub fn read_files_to_string_impl(args: Args) -> TokenStream {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use crate::axum::traits::BuildJson;
|
use crate::axum::traits::BuildJson;
|
||||||
use axum::body::Body;
|
use axum::body::Body;
|
||||||
use axum::http::header::CONTENT_TYPE;
|
|
||||||
use axum::http::Request;
|
use axum::http::Request;
|
||||||
|
use axum::http::header::CONTENT_TYPE;
|
||||||
use mime::APPLICATION_JSON;
|
use mime::APPLICATION_JSON;
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use deadpool_diesel::postgres::BuildError;
|
use deadpool_diesel::postgres::BuildError;
|
||||||
use diesel_async::pooled_connection::deadpool::Pool;
|
|
||||||
use diesel_async::pooled_connection::AsyncDieselConnectionManager;
|
|
||||||
use diesel_async::AsyncPgConnection;
|
use diesel_async::AsyncPgConnection;
|
||||||
|
use diesel_async::pooled_connection::AsyncDieselConnectionManager;
|
||||||
|
use diesel_async::pooled_connection::deadpool::Pool;
|
||||||
|
|
||||||
/// A type alias for the asynchronous PostgreSQL connection pool.
|
/// A type alias for the asynchronous PostgreSQL connection pool.
|
||||||
pub type PgPool = Pool<AsyncPgConnection>;
|
pub type PgPool = Pool<AsyncPgConnection>;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use {
|
use {
|
||||||
crate::traits::IntoResult,
|
crate::traits::IntoResult,
|
||||||
nom::{error::Error, IResult},
|
nom::{IResult, error::Error},
|
||||||
};
|
};
|
||||||
|
|
||||||
impl<T, R> IntoResult<T> for IResult<R, T> {
|
impl<T, R> IntoResult<T> for IResult<R, T> {
|
||||||
|
Reference in New Issue
Block a user