Skip to content

Commit f4c87e6

Browse files
committed
improve
1 parent df7126a commit f4c87e6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sentry-types/src/protocol/envelope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ some content
10991099
let envelope = Envelope::new().with_headers(
11001100
EnvelopeHeaders::new().with_trace(
11011101
DynamicSamplingContext::new()
1102-
.with_sample_rand(SampleRand::try_from(0.9999999).unwrap()), // 7 nines
1102+
.with_sample_rand(SampleRand::try_from(0.999_999_9).unwrap()),
11031103
),
11041104
);
11051105
let expected = br#"{"trace":{"sample_rand":"0.999999"}}

sentry/src/transports/thread.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ use crate::{sentry_debug, Envelope};
99

1010
#[expect(
1111
clippy::large_enum_variant,
12-
reason = "In normal usage this is usually SendEnvelope, the other variants are only used when the user manually calls transport.flush() or when the transport is shut down."
12+
reason = "In normal usage this is usually SendEnvelope, the other variants are only used when \
13+
the user manually calls transport.flush() or when the transport is shut down."
1314
)]
1415
enum Task {
1516
SendEnvelope(Envelope),

sentry/src/transports/tokio_thread.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ use crate::{sentry_debug, Envelope};
99

1010
#[expect(
1111
clippy::large_enum_variant,
12-
reason = "In normal usage this is usually SendEnvelope, the other variants are only used when the user manually calls transport.flush() or when the transport is shut down."
12+
reason = "In normal usage this is usually SendEnvelope, the other variants are only used when \
13+
the user manually calls transport.flush() or when the transport is shut down."
1314
)]
1415
enum Task {
1516
SendEnvelope(Envelope),

0 commit comments

Comments
 (0)