You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: path_derive_actix.rs
    path of file: ./repos/utoipa/utoipa-gen/tests
    
    the code of the file until where you have to start completion: #![cfg(feature = "actix_extras")]

use std::{fmt::Display, future::Ready};

use actix_web::{
    get, post,
    web::{Json, Path, Query},
    From
    
fn derive_path_with_multiple_instances_same_path_params() {
    use actix_web::{delete, get, HttpResponse, Responder};
    use serde_json::json;

    #[derive(Deserialize, Serialize, ToSchema, IntoParams)]
    #[into_params(names("id"))]
    struct Id(u64);

    #[utoipa::path(
        params(
            Id
        ),
        responses(
            (status = 200, description = "success response")
        )
    )]
    #[get("/foo/{id}")]
    #[allow(unused)]
    async fn get_foo(id: Path<Id>) -> impl Responder {
        HttpResponse::Ok().json(json!({ "id": "foo" }))
    }

    #[utoipa::path(
        params(
            Id
        ),
        responses(
            (status = 200, description = "success response")
        )
    )]
    #[delete("/foo/{id}")]
    #[allow(unused)]
    async fn delete_foo(id: Path<Id>) -> impl Responder {
        HttpResponse::Ok().json(json!({ "id": "foo" }))
    }

    #[derive(OpenApi, Default)]
    #[openapi(paths(get_foo, delete_foo))]
    struct ApiDoc;

    let doc = serde_json::to_value(ApiDoc::openapi()).unwrap();

    for operation in ["get", "delete"] {
        let parameters = doc
            .pointer(&format!("/paths/~1foo~1{{id}}/{operation}/parameters"))
            .unwrap();

        common::assert_json_array_len(parameters, 1);
        assert_value! {parameters=>
            "[0].in" = r#""path""#, "Parameter in"
            "[0].name" = r#""id""#, "Parameter name"
            "[0].required" = r#"true"#, "Parameter required"
            "[0].deprecated" = r#"null"#, "Parameter deprecated"
            "[0].schema.type" = r#""integer""#, "Parameter schema type"
            "[0].schema.format" = r#""int64""#, "Parameter schema format"
        }
    }
}