Skip to content

Commit 3d1837e

Browse files
committed
Fixup compilation errors
1 parent 3a1b39e commit 3d1837e

12 files changed

Lines changed: 424 additions & 424 deletions

File tree

modules/openapi-generator/src/main/resources/rust-server-deprecated/models.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
579579
}
580580
}
581581

582-
#[cfg(feature = "server")]
582+
#[cfg(any(feature = "client", feature = "server"))]
583583
impl std::convert::TryFrom<header::IntoHeaderValue<Vec<{{{classname}}}>>> for hyper::header::HeaderValue {
584584
type Error = String;
585585
@@ -595,7 +595,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<{{{classname}}}>>> for hy
595595
}
596596
}
597597

598-
#[cfg(feature = "server")]
598+
#[cfg(any(feature = "client", feature = "server"))]
599599
impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<{{{classname}}}>> {
600600
type Error = String;
601601

modules/openapi-generator/src/main/resources/rust-server/models.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
629629
}
630630
}
631631

632-
#[cfg(feature = "server")]
632+
#[cfg(any(feature = "client", feature = "server"))]
633633
impl std::convert::TryFrom<header::IntoHeaderValue<Vec<{{{classname}}}>>> for hyper::header::HeaderValue {
634634
type Error = String;
635635
@@ -645,7 +645,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<{{{classname}}}>>> for hy
645645
}
646646
}
647647

648-
#[cfg(feature = "server")]
648+
#[cfg(any(feature = "client", feature = "server"))]
649649
impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<{{{classname}}}>> {
650650
type Error = String;
651651

samples/server/petstore/rust-server-deprecated/output/multipart-v3/src/models.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
137137
}
138138
}
139139

140-
#[cfg(feature = "server")]
140+
#[cfg(any(feature = "client", feature = "server"))]
141141
impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRelatedRequest>>> for hyper::header::HeaderValue {
142142
type Error = String;
143143

@@ -153,7 +153,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRelatedRequest>>
153153
}
154154
}
155155

156-
#[cfg(feature = "server")]
156+
#[cfg(any(feature = "client", feature = "server"))]
157157
impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<MultipartRelatedRequest>> {
158158
type Error = String;
159159

@@ -307,7 +307,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
307307
}
308308
}
309309

310-
#[cfg(feature = "server")]
310+
#[cfg(any(feature = "client", feature = "server"))]
311311
impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRequestObjectField>>> for hyper::header::HeaderValue {
312312
type Error = String;
313313

@@ -323,7 +323,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRequestObjectFie
323323
}
324324
}
325325

326-
#[cfg(feature = "server")]
326+
#[cfg(any(feature = "client", feature = "server"))]
327327
impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<MultipartRequestObjectField>> {
328328
type Error = String;
329329

@@ -471,7 +471,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
471471
}
472472
}
473473

474-
#[cfg(feature = "server")]
474+
#[cfg(any(feature = "client", feature = "server"))]
475475
impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipleIdenticalMimeTypesPostRequest>>> for hyper::header::HeaderValue {
476476
type Error = String;
477477

@@ -487,7 +487,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipleIdenticalMimeType
487487
}
488488
}
489489

490-
#[cfg(feature = "server")]
490+
#[cfg(any(feature = "client", feature = "server"))]
491491
impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<MultipleIdenticalMimeTypesPostRequest>> {
492492
type Error = String;
493493

samples/server/petstore/rust-server-deprecated/output/no-example-v3/src/models.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
120120
}
121121
}
122122

123-
#[cfg(feature = "server")]
123+
#[cfg(any(feature = "client", feature = "server"))]
124124
impl std::convert::TryFrom<header::IntoHeaderValue<Vec<OpGetRequest>>> for hyper::header::HeaderValue {
125125
type Error = String;
126126

@@ -136,7 +136,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<OpGetRequest>>> for hyper
136136
}
137137
}
138138

139-
#[cfg(feature = "server")]
139+
#[cfg(any(feature = "client", feature = "server"))]
140140
impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<OpGetRequest>> {
141141
type Error = String;
142142

0 commit comments

Comments
 (0)