Skip to content

Commit

Permalink
Unbreak trunk
Browse files Browse the repository at this point in the history
Summary: Somehow forgot to submit this amendment to D53689274, and submitted a version of D53788472 which was based on the amended version of D53689274 (causing it to pass CI even though it would fail in trunk).

Differential Revision: D53837926

fbshipit-source-id: 8270433c9ace0968a6035af34782e74a77baaf24
  • Loading branch information
rjbailey authored and facebook-github-bot committed Feb 16, 2024
1 parent 805f86f commit 60a46fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions td_util/src/supertd_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ pub fn init(fb: fbinit::FacebookInit) -> ScubaClientGuard {
/// # Examples
///
/// ```
/// # use serde_json::json;
/// # let foos_run = 10;
/// # let bars_launched = 2;
/// td_util::scuba!(
Expand All @@ -85,10 +84,11 @@ macro_rules! scuba {
$($crate::scuba! { @SET_FIELD(builder, $key, $value) })*
builder.log();
};
( @SET_FIELD ( $builder:ident, data, $value:expr ) ) => {
( @SET_FIELD ( $builder:ident, data, $value:expr ) ) => {{
use $crate::supertd_events::serde_json::json;
// This unwrap should only fail for map keys with invalid UTF-8.
$builder.add("data", $crate::supertd_events::serde_json::to_string(&$value).unwrap());
};
}};
( @SET_FIELD ( $builder:ident, $key:ident, $value:expr ) ) => {
$builder.add(stringify!($key), $value);
};
Expand Down

0 comments on commit 60a46fc

Please sign in to comment.