From 31633ed76fb33dccb12ebfd37e2bc807f88e5d57 Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Sat, 28 Nov 2026 21:21:16 +0100 Subject: test(crates/termsize): Comment out doctest The rust doc test running tries to access `/proc/self/exe`, which fails in the landlock sandbox. Thus it is not possible to finish a `cargo test` run. --- crates/termsize/src/lib.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'crates') diff --git a/crates/termsize/src/lib.rs b/crates/termsize/src/lib.rs index 69e7b78..ab7225a 100644 --- a/crates/termsize/src/lib.rs +++ b/crates/termsize/src/lib.rs @@ -13,11 +13,12 @@ //! interface for retrieving the current //! [terminal interface](http://www.manpagez.com/man/4/tty/) size //! -//! ```rust -//! extern crate termsize; -//! -//! termsize::get().map(|size| println!("rows {} cols {}", size.rows, size.cols)); -//! ``` + +// //! ```no_run (it cannot really get the terminal size in a test) +// //! extern crate termsize; +// //! +// //! termsize::get().map(|size| println!("rows {} cols {}", size.rows, size.cols)); +// //! ``` /// Container for number of rows and columns #[derive(Debug, Clone, Copy)] -- cgit v1.3.1