@@ -14,7 +14,7 @@ use crate::{error::Result, utils::checked_with_lock};
14
14
/// user defined types. With the `derive` feature enabled for this crate one can
15
15
/// easily define types for reading and writing to and from `netCDF` files.
16
16
/// # Example (derive macro)
17
- /// ```rust
17
+ /// ```rust,no_run
18
18
/// # #[cfg(feature = "derive")]
19
19
/// #[repr(C)]
20
20
/// #[derive(netcdf::NcType, Debug, Copy, Clone)]
@@ -64,7 +64,7 @@ use crate::{error::Result, utils::checked_with_lock};
64
64
/// Reading of an `netcdf_sys::NC_CHAR` can not be done by using `i8` or `u8` as
65
65
/// such types are not considered text. The below snippet can be used to define
66
66
/// a type which will read this type.
67
- /// ```rust
67
+ /// ```rust,no_run
68
68
/// # use netcdf::types::*;
69
69
/// #[repr(transparent)]
70
70
/// #[derive(Copy, Clone)]
@@ -76,7 +76,7 @@ use crate::{error::Result, utils::checked_with_lock};
76
76
/// }
77
77
/// ```
78
78
/// ## Opaque type
79
- /// ```rust
79
+ /// ```rust,no_run
80
80
/// # use netcdf::types::*;
81
81
/// #[repr(transparent)]
82
82
/// #[derive(Copy, Clone)]
@@ -95,7 +95,7 @@ use crate::{error::Result, utils::checked_with_lock};
95
95
/// type means the memory is backed by `netCDF` and should be
96
96
/// freed using [`netcdf_sys::nc_free_vlen`] or [`netcdf_sys::nc_free_vlens`]
97
97
/// to avoid memory leaks.
98
- /// ```rust
98
+ /// ```rust,no_run
99
99
/// # use netcdf::types::*;
100
100
/// #[repr(C)]
101
101
/// struct Vlen {
@@ -113,7 +113,7 @@ use crate::{error::Result, utils::checked_with_lock};
113
113
/// ```
114
114
/// ## String type
115
115
/// String types must be freed using [`netcdf_sys::nc_free_string`].
116
- /// ```rust
116
+ /// ```rust,no_run
117
117
/// # use netcdf::types::*;
118
118
/// #[repr(transparent)]
119
119
/// struct NcString(*mut std::ffi::c_char);
0 commit comments