From 77c81bcb31bdb9cd4591b79f38b3d83fbb993208 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Tue, 3 Dec 2024 14:41:36 +0100 Subject: [PATCH] datastore: docs: turn uri into hyperlink Fixes the cargo doc lint: ``` warning: this URL is not a hyperlink --> pbs-datastore/src/data_blob.rs:555:5 | 555 | /// https://github.com/facebook/zstd/blob/dev/lib/common/error_private.h | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: bare URLs are not automatically turned into clickable links = note: `#[warn(rustdoc::bare_urls)]` on by default help: use an automatic link instead | 555 | /// | + + ``` Signed-off-by: Maximiliano Sandoval --- pbs-datastore/src/data_blob.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-datastore/src/data_blob.rs b/pbs-datastore/src/data_blob.rs index 0fb4d44c..0c05c5a4 100644 --- a/pbs-datastore/src/data_blob.rs +++ b/pbs-datastore/src/data_blob.rs @@ -552,7 +552,7 @@ impl<'a, 'b> DataChunkBuilder<'a, 'b> { /// Check if the error code returned by `zstd_safe::compress`, or anything else that does FFI calls /// into zstd code, was `70` 'Destination buffer is too small' by subtracting the error code from /// `0` (with underflow), see `ERR_getErrorCode` in -/// https://github.com/facebook/zstd/blob/dev/lib/common/error_private.h +/// /// /// There is a test below to ensure we catch any change in the interface or internal value. fn zstd_error_is_target_too_small(err: usize) -> bool {