Skip to content

Commit

Permalink
Fix one more error when lender is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
jhg committed Jan 14, 2025
1 parent 2f2ce85 commit c880c78
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ impl core::fmt::Display for PointerError {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
match self {
Self::Null => write!(f, "dereference a null pointer will produce a crash"),
#[cfg(all(feature = "std", feature = "lender"))]
Self::Invalid => write!(f, "dereference a unknown pointer could produce a crash"),
#[cfg(all(feature = "std", feature = "lender"))]
Self::InvalidType => write!(
f,
"dereference a pointer with a different type could produce errors"
Expand Down

0 comments on commit c880c78

Please sign in to comment.