Skip to content

Commit

Permalink
Allow unsafe code, but deny undocumented blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Aug 12, 2022
1 parent a99ec40 commit d385f05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
#![deny(
anonymous_parameters,
clippy::all,
clippy::undocumented_unsafe_blocks,
const_err,
illegal_floating_point_literal_pattern,
late_bound_lifetime_arguments,
Expand All @@ -99,7 +100,6 @@
trivial_casts,
trivial_numeric_casts,
unreachable_pub,
unsafe_code,
unsafe_op_in_unsafe_fn,
unused_extern_crates
)]
Expand Down
3 changes: 0 additions & 3 deletions src/parsing/parsed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ macro_rules! getters {
None
} else {
// SAFETY: We just checked if the field is present.
#[allow(unsafe_code)]
Some(unsafe { self.$name.assume_init() })
}
}
Expand Down Expand Up @@ -330,7 +329,6 @@ impl Parsed {
None
} else {
// SAFETY: We just checked if the field is present.
#[allow(unsafe_code)]
Some(unsafe { self.offset_minute.assume_init() })
}
}
Expand All @@ -347,7 +345,6 @@ impl Parsed {
None
} else {
// SAFETY: We just checked if the field is present.
#[allow(unsafe_code)]
Some(unsafe { self.offset_second.assume_init() })
}
}
Expand Down

0 comments on commit d385f05

Please sign in to comment.