Skip to content

Commit

Permalink
fix: cargo build fail (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
847850277 authored Oct 31, 2024
1 parent c8a435b commit 7ceba17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/oapi-macros/src/response/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{parse_utils, AnyValue, Server};

/// ("name" = (link))
#[derive(Debug)]
pub(crate) struct LinkTuple(pub parse_utils::LitStrOrExpr, pub Link);
pub(crate) struct LinkTuple(pub(crate) parse_utils::LitStrOrExpr, pub(crate) Link);

impl Parse for LinkTuple {
fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
Expand Down
4 changes: 2 additions & 2 deletions crates/oapi-macros/src/schema_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ impl ToTokens for SchemaTypeInner {

/// Tokenizes OpenAPI data type correctly according to the Rust type
pub(crate) struct SchemaType<'a> {
pub path: &'a syn::Path,
pub nullable: bool,
pub(crate) path: &'a syn::Path,
pub(crate) nullable: bool,
}

impl SchemaType<'_> {
Expand Down

0 comments on commit 7ceba17

Please sign in to comment.