Skip to content

Commit bf8d914

Browse files
committed
Fix docs deployment.
1 parent a562213 commit bf8d914

File tree

2 files changed

+5
-30
lines changed

2 files changed

+5
-30
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ jobs:
4040
run: cargo clean --doc
4141

4242
- name: Build docs
43-
run: cargo doc --no-deps
43+
run: cargo doc --no-deps --warnings-as-errors
44+
env:
45+
RUSTDOCFLAGS: "-D warnings"
4446

4547
- name: Add redirect
46-
run: echo '<meta http-equiv="refresh" content="0;url=aoc/index.html">' > target/doc/index.html
48+
run: echo '<meta http-equiv="refresh" content="0;url=doc/index.html">' > target/doc/index.html
4749

4850
- name: Remove lock file
4951
run: rm target/doc/.lock

src/unix/wait_state.rs

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ impl WaitState {
6464
}
6565
}
6666

67-
/// A copy of the Unix `WIFEXITED(status)` macro.
68-
#[allow(non_snake_case)]
69-
#[inline]
70-
#[must_use]
71-
const fn WSTOPSIG(status: i32) -> i32 {
72-
(status >> 8) & 0xFF
73-
}
74-
7567
/// Represents the stopped status bit.
7668
const _WSTOPPED: i32 = 0x7F;
7769

@@ -165,19 +157,6 @@ impl WaitState {
165157
Self::WTERMSIG(status) as u8
166158
}
167159

168-
/// Returns the signal number that caused the process to stop.
169-
///
170-
/// Equivalent to the Unix `WSTOPSIG(status)` macro.
171-
///
172-
/// # Panics
173-
///
174-
/// If [`is_w_stopped`](Self::is_w_stopped) returns `false`, this function will panic.
175-
#[allow(clippy::cast_possible_truncation, clippy::cast_sign_loss)]
176-
#[must_use]
177-
pub const fn w_stop_sig(status: i32) -> u8 {
178-
Self::WSTOPSIG(status) as u8
179-
}
180-
181160
/// Returns `true` if the status indicates a core dump occurred.
182161
///
183162
/// Equivalent to the Unix `WCOREDUMP(status)` macro.
@@ -287,7 +266,7 @@ mod tests {
287266
#[cfg(all(test, unix))]
288267
mod libc_verification_tests {
289268
use super::*;
290-
use libc::{WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSIGNALED, WSTOPSIG, WTERMSIG};
269+
use libc::{WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSIGNALED, WTERMSIG};
291270

292271
#[test]
293272
fn test_wifexited_true() {
@@ -331,12 +310,6 @@ mod libc_verification_tests {
331310
assert_eq!(WaitState::w_term_sig(0x0000_0001), 1);
332311
}
333312

334-
#[test]
335-
fn test_wstopsig() {
336-
assert_eq!(WaitState::w_stop_sig(0x0000_007F), 0);
337-
assert_eq!(WSTOPSIG(0x0000_007F), 0);
338-
}
339-
340313
#[test]
341314
fn test_wcoredump_true() {
342315
assert!(WCOREDUMP(0x0000_0081));

0 commit comments

Comments
 (0)