Skip to content

Commit 24d1a9a

Browse files
committed
cxx-qt-lib: ignore doctests
1 parent a3a9c2e commit 24d1a9a

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

crates/cxx-qt-lib/src/core/qtlogging.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ pub fn q_fatal(file: &CStr, line: i32, message: &QString) {
8383
///
8484
/// # Examples
8585
///
86-
/// ```
86+
/// ```rust,ignore
8787
/// use cxx_qt_lib::q_debug;
8888
///
8989
/// fn somefunc(x: i32, y: i32) {
90-
/// # cxx_qt::init_crate!(cxx_qt_lib);
9190
/// q_debug!("x: {x}, y: {y}");
9291
/// q_debug!("x: {}, y: {}", x, y);
9392
/// }
@@ -105,11 +104,10 @@ macro_rules! q_debug {
105104
///
106105
/// # Examples
107106
///
108-
/// ```
107+
/// ```rust,ignore
109108
/// use cxx_qt_lib::q_info;
110109
///
111110
/// fn somefunc(x: i32, y: i32) {
112-
/// # cxx_qt::init_crate!(cxx_qt_lib);
113111
/// q_info!("x: {x}, y: {y}");
114112
/// q_info!("x: {}, y: {}", x, y);
115113
/// }
@@ -129,11 +127,10 @@ macro_rules! q_info {
129127
///
130128
/// # Examples
131129
///
132-
/// ```
130+
/// ```rust,ignore
133131
/// use cxx_qt_lib::q_warning;
134132
///
135133
/// fn somefunc(x: i32, y: i32) {
136-
/// # cxx_qt::init_crate!(cxx_qt_lib);
137134
/// q_warning!("x: {x}, y: {y}");
138135
/// q_warning!("x: {}, y: {}", x, y);
139136
/// }
@@ -153,11 +150,10 @@ macro_rules! q_warning {
153150
///
154151
/// # Examples
155152
///
156-
/// ```
153+
/// ```rust,ignore
157154
/// use cxx_qt_lib::q_critical;
158155
///
159156
/// fn somefunc(x: i32, y: i32) {
160-
/// # cxx_qt::init_crate!(cxx_qt_lib);
161157
/// q_critical!("x: {x}, y: {y}");
162158
/// q_critical!("x: {}, y: {}", x, y);
163159
/// }
@@ -178,11 +174,10 @@ macro_rules! q_critical {
178174
///
179175
/// # Examples
180176
///
181-
/// ```
177+
/// ```rust,ignore
182178
/// use cxx_qt_lib::q_fatal;
183179
///
184180
/// fn somefunc(x: i32, y: i32) {
185-
/// # cxx_qt::init_crate!(cxx_qt_lib);
186181
/// q_fatal!("x: {x}, y: {y}");
187182
/// q_fatal!("x: {}, y: {}", x, y);
188183
/// }

0 commit comments

Comments
 (0)