Skip to content

Commit 18096a8

Browse files
authored
Remove builders from typespec_client_core (Azure#2320)
Resolves Azure#2314. Accidentally left over from unofficial implementation.
1 parent 776adf5 commit 18096a8

File tree

5 files changed

+6
-78
lines changed

5 files changed

+6
-78
lines changed

sdk/core/azure_core/src/options/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ mod telemetry;
55
pub use telemetry::*;
66

77
pub use typespec_client_core::http::{
8-
builders, ClientMethodOptions, ClientOptions, ExponentialRetryOptions, FixedRetryOptions,
9-
RetryOptions, TransportOptions,
8+
ClientMethodOptions, ClientOptions, ExponentialRetryOptions, FixedRetryOptions, RetryOptions,
9+
TransportOptions,
1010
};

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ pub fn to_last_state_change(date: &OffsetDateTime) -> String {
119119
date.format(LAST_STATE_CHANGE_FORMAT).unwrap()
120120
}
121121

122-
// Create a duration from the number of minutes.
122+
/// Create a duration from the number of minutes.
123123
pub fn duration_from_minutes(minutes: u64) -> Duration {
124124
Duration::from_secs(minutes * 60)
125125
}
126126

127-
// Create a duration from the number of hours.
127+
/// Create a duration from the number of hours.
128128
pub fn duration_from_hours(hours: u64) -> Duration {
129129
Duration::from_secs(hours * 3_600)
130130
}
131131

132-
// Create a duration from the number of days.
132+
/// Create a duration from the number of days.
133133
pub fn duration_from_days(days: u64) -> Duration {
134134
Duration::from_secs(days * 86_400)
135135
}

sdk/typespec/typespec_client_core/src/http/models/etag.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use serde::{Deserialize, Serialize};
55
use std::{fmt, str::FromStr};
66

7+
/// Represents an ETag for versioned resources.
78
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
89
pub struct Etag(String);
910

sdk/typespec/typespec_client_core/src/http/options/builders.rs

Lines changed: 0 additions & 72 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
//! Options and builders for clients, client methods, and policies.
55
6-
pub mod builders;
76
mod retry;
87
mod transport;
98

0 commit comments

Comments
 (0)