diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 21:21:16 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 21:21:16 +0100 |
| commit | 31633ed76fb33dccb12ebfd37e2bc807f88e5d57 (patch) | |
| tree | 8d3259da96672d3e08c19a824d153f092e49c575 /crates/termsize/src/lib.rs | |
| parent | build(.gitignore): Ignore all result-* symlinks (e.g. result-dev) (diff) | |
| download | yt-31633ed76fb33dccb12ebfd37e2bc807f88e5d57.zip | |
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.
Diffstat (limited to 'crates/termsize/src/lib.rs')
| -rw-r--r-- | crates/termsize/src/lib.rs | 11 |
1 files changed, 6 insertions, 5 deletions
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)] |
