mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Testing fmt CI check behind cuda feature flag.
This commit is contained in:
@ -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())))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user