chore: move imports back inside (?)

This commit is contained in:
Rob Ede 2024-06-07 21:26:25 +01:00
parent eca91697f2
commit f367105c72
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 3 additions and 2 deletions

View File

@ -204,15 +204,16 @@ method_macro!(Patch, patch);
///
/// ## Attributes:
///
/// - `"path"` - Raw literal string with path for which to register handler. Mandatory.
/// - `"/prefix"` - Raw literal string with path for which to register handler. Mandatory.
///
/// # Example
///
/// ```
/// # use actix_web_codegen::scope;
/// # use actix_web::{get, HttpResponse, Responder};
/// #[scope("/test")]
/// mod scope_module {
/// # use actix_web_codegen::get;
/// # use actix_web::{HttpResponse, Responder};
/// #[get("/test")]
/// pub async fn test() -> impl Responder {
/// // this has path /test/test