diff --git a/oblivion-codegen/src/lib.rs b/oblivion-codegen/src/lib.rs index 8bbec21..7b644af 100644 --- a/oblivion-codegen/src/lib.rs +++ b/oblivion-codegen/src/lib.rs @@ -6,14 +6,14 @@ use quote::quote; use syn::{parse_macro_input, ItemFn}; /// ## Oblivion 业务函数宏 -/// +/// /// 这是一个示例: -/// +/// /// ```rust /// use oblivion::oblivion_codegen::async_route; /// use oblivion::utils::parser::OblivionRequest; /// use oblivion::models::render::{BaseResponse, Response}; -/// +/// /// #[async_route] /// fn welcome(mut req: OblivionRequest) -> Response { /// Ok(BaseResponse::TextResponse( diff --git a/src/models/render.rs b/src/models/render.rs index 52e2e37..d6ea7c2 100644 --- a/src/models/render.rs +++ b/src/models/render.rs @@ -1,7 +1,7 @@ //! # Oblivion Render +use anyhow::Result; use futures::future::BoxFuture; use serde_json::Value; -use anyhow::Result; use crate::exceptions::OblivionException;