Skip to content

Commit 0702943

Browse files
committed
Fix formatting.
1 parent 0960f25 commit 0702943

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

libdd-live-debugger-ffi/src/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache
22
// License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021-Present Datadog, Inc.
33

4+
use libdd_common_ffi::slice::AsBytes;
5+
use libdd_common_ffi::{CharSlice, Option};
46
use libdd_live_debugger::debugger_defs::{ProbeMetadata, ProbeMetadataLocation, ProbeStatus};
57
use libdd_live_debugger::{
68
CaptureConfiguration, DslString, EvaluateAt, InBodyLocation, MetricKind, ProbeCondition,
79
ProbeValue, SpanProbeTarget,
810
};
9-
use libdd_common_ffi::slice::AsBytes;
10-
use libdd_common_ffi::{CharSlice, Option};
1111
use std::borrow::Cow;
1212

1313
#[repr(C)]

libdd-live-debugger-ffi/src/evaluator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache
22
// License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021-Present Datadog, Inc.
33

4-
use libdd_live_debugger::debugger_defs::SnapshotEvaluationError;
5-
use libdd_live_debugger::{DslString, ProbeCondition, ProbeValue, ResultError, ResultValue};
64
use libdd_common_ffi::slice::AsBytes;
75
use libdd_common_ffi::CharSlice;
6+
use libdd_live_debugger::debugger_defs::SnapshotEvaluationError;
7+
use libdd_live_debugger::{DslString, ProbeCondition, ProbeValue, ResultError, ResultValue};
88
use std::borrow::Cow;
99
use std::ffi::c_void;
1010

libdd-live-debugger-ffi/src/parse.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ pub unsafe extern "C" fn ddog_parse_live_debugger_json(
2323
// we have the box. Rust doesn't allow us to specify a self-referential struct, so
2424
// pretend it's 'static
2525
data: unsafe {
26-
std::mem::transmute::<&_, &'static libdd_live_debugger::LiveDebuggingData>(
27-
&*parsed,
28-
)
26+
std::mem::transmute::<&_, &'static libdd_live_debugger::LiveDebuggingData>(&*parsed)
2927
}
3028
.into(),
3129
opaque_data: Some(parsed),

libdd-live-debugger-ffi/src/send_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::collections::hash_map;
77
use std::mem::transmute;
88
// Alias to prevent cbindgen panic
99
use crate::data::Probe;
10+
use libdd_common_ffi::slice::AsBytes;
1011
use libdd_live_debugger::debugger_defs::{
1112
Capture as DebuggerCaptureAlias, Capture, Captures, DebuggerData, DebuggerPayload, Diagnostics,
1213
DiagnosticsError, Entry, Fields, ProbeMetadata, ProbeMetadataLocation, ProbeStatus, Snapshot,
@@ -16,7 +17,6 @@ use libdd_live_debugger::sender::generate_new_id;
1617
use libdd_live_debugger::{
1718
add_redacted_name, add_redacted_type, is_redacted_name, is_redacted_type,
1819
};
19-
use libdd_common_ffi::slice::AsBytes;
2020

2121
#[repr(C)]
2222
pub enum FieldType {

libdd-live-debugger-ffi/src/sender.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
use crate::send_data::serialize_debugger_payload;
5-
use libdd_live_debugger::debugger_defs::DebuggerPayload;
6-
use libdd_live_debugger::sender;
7-
use libdd_live_debugger::sender::{generate_tags, Config, DebuggerType};
85
use libdd_common::tag::Tag;
96
use libdd_common::Endpoint;
107
use libdd_common_ffi::slice::AsBytes;
118
use libdd_common_ffi::{CharSlice, MaybeError};
9+
use libdd_live_debugger::debugger_defs::DebuggerPayload;
10+
use libdd_live_debugger::sender;
11+
use libdd_live_debugger::sender::{generate_tags, Config, DebuggerType};
1212
use log::{debug, warn};
1313
use percent_encoding::{percent_encode, CONTROLS};
1414
use std::sync::Arc;

0 commit comments

Comments
 (0)