You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lading/src/generator/grpc.rs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,10 @@ impl Grpc {
192
192
/// Function will panic if user has passed zero values for any byte
193
193
/// values. Sharp corners.
194
194
#[expect(clippy::cast_possible_truncation)]
195
+
#[expect(
196
+
clippy::expect_used,
197
+
reason = "FIXME: config.target_uri is user-supplied; parsing and the required path_and_query check should surface as Error variants instead of panicking. Tracked for follow-up."
198
+
)]
195
199
pubfnnew(
196
200
general:General,
197
201
config:Config,
@@ -241,6 +245,10 @@ impl Grpc {
241
245
}
242
246
243
247
/// Establish a connection with the configured RPC server
248
+
#[expect(
249
+
clippy::expect_used,
250
+
reason = "Uri::from_parts is reconstructing self.target_uri's parts after replacing path_and_query with an empty static; the parts already came from a valid Uri"
Copy file name to clipboardExpand all lines: lading/src/generator/http.rs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,10 @@ impl Http {
141
141
/// Function will panic if user has passed non-zero values for any byte
142
142
/// values. Sharp corners.
143
143
#[expect(clippy::cast_possible_truncation)]
144
+
#[expect(
145
+
clippy::expect_used,
146
+
reason = "OnceCell::set is called exactly once at HTTP generator startup"
147
+
)]
144
148
pubfnnew(
145
149
general:General,
146
150
config:Config,
@@ -212,6 +216,10 @@ impl Http {
212
216
///
213
217
/// Function will panic if it is unable to create HTTP requests for the
214
218
/// target.
219
+
#[expect(
220
+
clippy::expect_used,
221
+
reason = "OnceCell::get on a value set during `new`, and Semaphore::acquire panics only after `Semaphore::close`; we never close the throttle semaphore"
222
+
)]
215
223
pubasyncfnspin(mutself) -> Result<(),Error>{
216
224
let client = Client::builder(TokioExecutor::new())
reason = "FIXME: server response parsing on Splunk HEC ack-id should surface as an Error variant rather than panic on malformed remote responses. Tracked for follow-up."
Copy file name to clipboardExpand all lines: lading/src/generator/tcp.rs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,10 @@ impl Tcp {
131
131
/// Function will panic if user has passed zero values for any byte
132
132
/// values. Sharp corners.
133
133
#[expect(clippy::cast_possible_truncation)]
134
+
#[expect(
135
+
clippy::expect_used,
136
+
reason = "FIXME: config.addr is user-supplied; socket address parsing failures should surface as Error variants instead of panicking. Tracked for follow-up."
0 commit comments