Skip to content

Commit e6a4c43

Browse files
committed
fix derive macro broken during refactoring
1 parent 70d4c48 commit e6a4c43

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sdk/typespec/typespec_client_core/src/http/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ pub use pipeline::*;
2424
pub use request::{Body, Request, RequestContent};
2525
pub use response::{Model, Response};
2626

27-
// Re-export derive macro for Model.
28-
#[cfg(feature = "derive")]
29-
pub use typespec_derive::Model;
30-
3127
// Re-export important types.
3228
pub use http_types::{Method, StatusCode};
3329
pub use url::Url;

sdk/typespec/typespec_client_core/src/http/response.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ use std::future::Future;
99
use std::{fmt, marker::PhantomData, pin::Pin};
1010
use typespec::error::{ErrorKind, ResultExt};
1111

12+
#[cfg(feature = "derive")]
13+
pub use typespec_derive::Model;
14+
1215
#[cfg(not(target_arch = "wasm32"))]
1316
pub type PinnedStream = Pin<Box<dyn Stream<Item = crate::Result<Bytes>> + Send + Sync>>;
1417
#[cfg(target_arch = "wasm32")]

0 commit comments

Comments
 (0)