Skip to content

Commit 81f41d7

Browse files
authored
make send_format more clearly a short-cut method
1 parent 9c0cd01 commit 81f41d7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ impl Pipeline {
9696
ctx: &Context<'_>,
9797
request: &mut Request,
9898
) -> crate::Result<Response<T, F>> {
99-
self.pipeline[0]
100-
.send(ctx, request, &self.pipeline[1..])
101-
.await
102-
.map(|r| r.with_model_type())
99+
self.send(ctx, request).await.map(|r| r.with_format())
103100
}
104101
}
105102

0 commit comments

Comments
 (0)