Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup leftover dbg from clamping timeouts #216

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
//! platform-specific port object which allows access to platform-specific functionality.

#![deny(
clippy::dbg_macro,
missing_docs,
missing_debug_implementations,
missing_copy_implementations
Expand Down
7 changes: 1 addition & 6 deletions src/posix/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ fn wait_fd(fd: RawFd, events: PollFlags, timeout: Duration) -> io::Result<()> {

let wait = match poll_clamped(&mut fd, timeout) {
Ok(r) => r,
Err(e) => {
dbg!(e);
return Err(io::Error::from(crate::Error::from(e)));
}
Err(e) => return Err(io::Error::from(crate::Error::from(e))),
};
// All errors generated by poll or ppoll are already caught by the nix wrapper around libc, so
// here we only need to check if there's at least 1 event
Expand Down Expand Up @@ -116,7 +113,6 @@ mod tests {

for (i, d) in MONOTONIC_DURATIONS.iter().enumerate() {
let next = clamped_millis_c_int(*d);
dbg!((i, d));
assert!(
next >= last,
"{next} >= {last} failed for {d:?} at index {i}"
Expand All @@ -136,7 +132,6 @@ mod tests {

for (i, d) in MONOTONIC_DURATIONS.iter().enumerate() {
let next = clamped_time_spec(*d);
dbg!((i, d));
assert!(
next >= last,
"{next} >= {last} failed for {d:?} at index {i}"
Expand Down
1 change: 0 additions & 1 deletion src/windows/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ mod tests {

for (i, d) in MONOTONIC_DURATIONS.iter().enumerate() {
let next = COMPort::timeout_constant(*d);
dbg!((i, d));
assert!(
next >= last,
"{next} >= {last} failed for {d:?} at index {i}"
Expand Down
Loading