Skip to content

Commit 608fdce

Browse files
committed
Do not run doc test (only compile them)
1 parent 03b900e commit 608fdce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

netcdf/src/types.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{error::Result, utils::checked_with_lock};
1414
/// user defined types. With the `derive` feature enabled for this crate one can
1515
/// easily define types for reading and writing to and from `netCDF` files.
1616
/// # Example (derive macro)
17-
/// ```rust
17+
/// ```rust,no_run
1818
/// # #[cfg(feature = "derive")]
1919
/// #[repr(C)]
2020
/// #[derive(netcdf::NcType, Debug, Copy, Clone)]
@@ -64,7 +64,7 @@ use crate::{error::Result, utils::checked_with_lock};
6464
/// Reading of an `netcdf_sys::NC_CHAR` can not be done by using `i8` or `u8` as
6565
/// such types are not considered text. The below snippet can be used to define
6666
/// a type which will read this type.
67-
/// ```rust
67+
/// ```rust,no_run
6868
/// # use netcdf::types::*;
6969
/// #[repr(transparent)]
7070
/// #[derive(Copy, Clone)]
@@ -76,7 +76,7 @@ use crate::{error::Result, utils::checked_with_lock};
7676
/// }
7777
/// ```
7878
/// ## Opaque type
79-
/// ```rust
79+
/// ```rust,no_run
8080
/// # use netcdf::types::*;
8181
/// #[repr(transparent)]
8282
/// #[derive(Copy, Clone)]
@@ -95,7 +95,7 @@ use crate::{error::Result, utils::checked_with_lock};
9595
/// type means the memory is backed by `netCDF` and should be
9696
/// freed using [`netcdf_sys::nc_free_vlen`] or [`netcdf_sys::nc_free_vlens`]
9797
/// to avoid memory leaks.
98-
/// ```rust
98+
/// ```rust,no_run
9999
/// # use netcdf::types::*;
100100
/// #[repr(C)]
101101
/// struct Vlen {
@@ -113,7 +113,7 @@ use crate::{error::Result, utils::checked_with_lock};
113113
/// ```
114114
/// ## String type
115115
/// String types must be freed using [`netcdf_sys::nc_free_string`].
116-
/// ```rust
116+
/// ```rust,no_run
117117
/// # use netcdf::types::*;
118118
/// #[repr(transparent)]
119119
/// struct NcString(*mut std::ffi::c_char);

0 commit comments

Comments
 (0)