Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Mar 2, 2024
1 parent dcf3756 commit 0e4fe7f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions extendr-api/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,14 @@ impl std::fmt::Display for Error {
),
Error::ExpectedExternalPtrType(_robj, type_name) => {
write!(f, "Incorrect external pointer type {}", type_name)
},
}
Error::ExpectedExternalNonNullPtr(robj) => {
write!(f, "expected non-null pointer in externalptr, instead {:?}", robj)
},
write!(
f,
"expected non-null pointer in externalptr, instead {:?}",
robj
)
}
Error::NoGraphicsDevices(_robj) => write!(f, "No graphics devices active."),
Error::Other(str) => write!(f, "{}", str),

Expand Down

0 comments on commit 0e4fe7f

Please sign in to comment.