Skip to content

Commit dc8fc80

Browse files
committed
docs: fix docsrs attributes
1 parent 4b910d9 commit dc8fc80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

testcontainers/src/core/image/runnable_image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl<I: Image> RunnableImage<I> {
111111
/// Returns a new RunnableImage with the specified arguments.
112112
///
113113
/// # Examples
114-
/// ```
114+
/// ```rust,no_run
115115
/// use testcontainers::{core::RunnableImage, GenericImage};
116116
///
117117
/// let image = GenericImage::default();

testcontainers/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![deny(missing_debug_implementations)]
22
#![warn(rust_2018_idioms)]
3+
#![cfg_attr(docsrs, deny(rustdoc::broken_intra_doc_links))]
4+
#![cfg_attr(docsrs, feature(doc_cfg))]
35

46
//! A library for integration testing against docker containers from within Rust.
57
//!

0 commit comments

Comments
 (0)