git.delta.rocks / jrsonnet / refs/commits / e70291dbc65e

difftreelog

fix anyhow-error feature build

Yaroslav Bolyukin2023-01-22parent: #eccec91.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/error.rsdiffbeforeafterboth
207207
208 #[cfg(feature = "anyhow-error")]208 #[cfg(feature = "anyhow-error")]
209 #[error(transparent)]209 #[error(transparent)]
210 Other(Rc<anyhow::Error>),210 Other(#[trace(skip)] std::rc::Rc<anyhow::Error>),
211}211}
212212
213#[cfg(feature = "anyhow-error")]213#[cfg(feature = "anyhow-error")]
214impl From<anyhow::Error> for Error {214impl From<anyhow::Error> for Error {
215 fn from(e: anyhow::Error) -> Self {215 fn from(e: anyhow::Error) -> Self {
216 Self::new(ErrorKind::Other(Rc::new(e)))216 Self::new(ErrorKind::Other(std::rc::Rc::new(e)))
217 }217 }
218}218}
219219