Skip to content

Commit 6ab8fee

Browse files
committed
Remove doc warnings
1 parent 5036cae commit 6ab8fee

File tree

25 files changed

+41
-42
lines changed

25 files changed

+41
-42
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ codegen-units = 1
106106
# proptest pulls in a dependency on libm, which changes the runtime of some math functions
107107
# so benchmarks are not measuring the same thing as the release build. This patch removes
108108
# the default dependency on libm. A PR will be opened to proptest to make this optional.
109-
proptest = { git = 'https://github.com/bantonsson/proptest.git', branch = "ban/avoid-libm-in-std" }
109+
proptest = { git = 'https://github.com/bantonsson/proptest.git', branch = "ban/avoid-libm-in-std" }

datadog-ipc/tarpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
//!
140140
//! Lastly let's write our `main` that will start the server. While this example uses an
141141
//! [in-process channel](transport::channel), tarpc also ships a generic [`serde_transport`]
142-
//! behind the `serde-transport` feature, with additional [TCP](serde_transport::tcp) functionality
142+
//! behind the `serde-transport` feature, with additional TCP functionality (`serde_transport::tcp`)
143143
//! available behind the `tcp` feature.
144144
//!
145145
//! ```rust

datadog-ipc/tarpc/src/server/tokio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl<T, S> TokioServerExecutor<T, S> {
2424

2525
/// A future that drives the server by [spawning](tokio::spawn) each [response
2626
/// handler](super::InFlightRequest::execute) on tokio's default executor. Returned by
27-
/// [`Channel::execute`](crate::server::Channel::execute).
27+
/// [`Channel::execute`].
2828
#[must_use]
2929
#[pin_project]
3030
#[derive(Debug)]

datadog-remote-config/src/fetch/shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ where
139139
/// with a potentially incomplete configuration.
140140
#[allow(clippy::type_complexity)]
141141
inactive: Arc<Mutex<HashMap<Arc<RemoteConfigPath>, Arc<S::StoredFile>>>>,
142-
/// times ConfigFetcher::<S>::fetch_once() is currently being run
142+
/// times `ConfigFetcher::<S>::fetch_once`() is currently being run
143143
run_id: Arc<RunnersGeneration>,
144144
}
145145

datadog-sidecar-ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub struct NativeFile {
7171
pub handle: Box<PlatformHandle<File>>,
7272
}
7373

74-
/// This creates Rust PlatformHandle<File> from supplied C std FILE object.
74+
/// This creates Rust `PlatformHandle<File>` from supplied C std FILE object.
7575
/// This method takes the ownership of the underlying file descriptor.
7676
///
7777
/// # Safety

libdd-common-ffi/src/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl From<Error> for VoidResult {
4141
}
4242

4343
/// A generic result type for when an operation may fail,
44-
/// or may return <T> in case of success.
44+
/// or may return `<T>` in case of success.
4545
#[repr(C)]
4646
pub enum Result<T> {
4747
Ok(T),

libdd-common-ffi/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::panic::{catch_unwind, AssertUnwindSafe};
55

66
/// Wraps a C-FFI function in standard form
77
/// Expects the function to return a result type that implements into and to be decorated with
8-
/// #[named].
8+
/// #\[named\].
99
#[macro_export]
1010
macro_rules! wrap_with_ffi_result {
1111
($body:block) => {{
@@ -34,7 +34,7 @@ macro_rules! wrap_with_ffi_result_no_catch {
3434
}
3535

3636
/// Wraps a C-FFI function in standard form.
37-
/// Expects the function to return a VoidResult and to be decorated with #[named].
37+
/// Expects the function to return a VoidResult and to be decorated with #\[named\].
3838
#[macro_export]
3939
macro_rules! wrap_with_void_ffi_result {
4040
($body:block) => {{

libdd-common/src/connector/named_pipe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use std::path::{Path, PathBuf};
55

66
/// Windows Named Pipe
7-
/// https://docs.microsoft.com/en-us/windows/win32/ipc/named-pipes
7+
/// <https://docs.microsoft.com/en-us/windows/win32/ipc/named-pipes>
88
///
99
/// The form a windows named pipe path is either local to the computer:
1010
/// \\.\pipe\pipename

libdd-crashtracker-ffi/src/collector/spans.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub unsafe extern "C" fn ddog_crasht_clear_trace_ids() -> VoidResult {
4949
/// Err() on failure. The most likely cause of failure is that the underlying set is full.
5050
///
5151
/// Note: 128 bit ints in FFI were not stabilized until Rust 1.77
52-
/// https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
52+
/// <https://blog.rust-lang.org/2024/03/30/i128-layout-update.html>
5353
/// We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
5454
/// until we can upgrade.
5555
///
@@ -78,7 +78,7 @@ pub unsafe extern "C" fn ddog_crasht_insert_trace_id(id_high: u64, id_low: u64)
7878
/// Err() on failure. The most likely cause of failure is that the underlying set is full.
7979
///
8080
/// Note: 128 bit ints in FFI were not stabilized until Rust 1.77
81-
/// https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
81+
/// <https://blog.rust-lang.org/2024/03/30/i128-layout-update.html>
8282
/// We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
8383
/// until we can upgrade.
8484
///
@@ -108,7 +108,7 @@ pub unsafe extern "C" fn ddog_crasht_insert_span_id(id_high: u64, id_low: u64) -
108108
/// be modified.
109109
///
110110
/// Note: 128 bit ints in FFI were not stabilized until Rust 1.77
111-
/// https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
111+
/// <https://blog.rust-lang.org/2024/03/30/i128-layout-update.html>
112112
/// We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
113113
/// until we can upgrade.
114114
///
@@ -142,7 +142,7 @@ pub unsafe extern "C" fn ddog_crasht_remove_span_id(
142142
/// be modified.
143143
///
144144
/// Note: 128 bit ints in FFI were not stabilized until Rust 1.77
145-
/// https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
145+
/// <https://blog.rust-lang.org/2024/03/30/i128-layout-update.html>
146146
/// We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
147147
/// until we can upgrade.
148148
///

libdd-crashtracker/src/crash_info/sig_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct SigInfo {
1717
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
1818
#[allow(clippy::upper_case_acronyms, non_camel_case_types)]
1919
#[repr(C)]
20-
/// See https://man7.org/linux/man-pages/man7/signal.7.html
20+
/// See <https://man7.org/linux/man-pages/man7/signal.7.html>
2121
pub enum SignalNames {
2222
SIGHUP,
2323
SIGINT,
@@ -260,7 +260,7 @@ mod unix {
260260
)]
261261
#[allow(clippy::upper_case_acronyms, non_camel_case_types)]
262262
#[repr(C)]
263-
/// See https://man7.org/linux/man-pages/man2/sigaction.2.html
263+
/// See <https://man7.org/linux/man-pages/man2/sigaction.2.html>
264264
/// MUST REMAIN IN SYNC WITH THE ENUM IN emit_sigcodes.c
265265
pub enum SiCodes {
266266
BUS_ADRALN,

0 commit comments

Comments
 (0)