Testing fmt CI check behind cuda feature flag.

This commit is contained in:
Nicolas Patry
2023-07-14 15:14:52 +00:00
parent dcb4a9291e
commit b9605310b1

View File

@ -106,7 +106,8 @@ trait WrapErr<O> {
impl<O, E: Into<CudaError>> WrapErr<O> for std::result::Result<O, E> { impl<O, E: Into<CudaError>> WrapErr<O> for std::result::Result<O, E> {
fn w(self) -> std::result::Result<O, crate::Error> { fn w(self) -> std::result::Result<O, crate::Error> {
self.map_err(|e| crate::Error::Cuda(Box::new(e.into()))) self
.map_err(|e| crate::Error::Cuda(Box::new(e.into())))
} }
} }