diff --git a/.github/workflows/rust_checks.yml b/.github/workflows/rust_checks.yml index c5bdbb917..26b2f900d 100644 --- a/.github/workflows/rust_checks.yml +++ b/.github/workflows/rust_checks.yml @@ -32,6 +32,19 @@ jobs: # into automatic CI failure day, so we don't do that. run: cargo clippy --workspace --all-targets + rustdoc: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - name: cargo doc + run: | + RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all + - name: cargo doctest + run: | + cargo test --doc --workspace --all + # Disabling for now because it also checks "advisories", # making CI fail for reasons unrelated to the patch # cargo-deny: diff --git a/src/screen.rs b/src/screen.rs index 680bdbad3..87a77f0b3 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -1561,7 +1561,7 @@ pub fn escape_code_length(code: &wstr) -> Option { /// Midnight Commander tries to extract the last line of the prompt, and does so in a way that is /// broken if you do '\r' after it like we normally do. -/// See https://midnight-commander.org/ticket/4258. +/// See . pub fn screen_set_midnight_commander_hack() { MIDNIGHT_COMMANDER_HACK.store(true) }