difftreelog
fix bounds type error syntax
in: master
1 file changed
crates/jrsonnet-evaluator/src/typed.rsdiffbeforeafterboth30 MissingProperty(Rc<str>, ComplexValType),30 MissingProperty(Rc<str>, ComplexValType),31 #[error("every failed from {0}:\n{1}")]31 #[error("every failed from {0}:\n{1}")]32 UnionFailed(ComplexValType, TypeLocErrorList),32 UnionFailed(ComplexValType, TypeLocErrorList),33 #[error("number out of bounds: {0} not in {1:?}..{2:?}")]33 #[error(34 "number out of bounds: {0} not in {}..{}",35 .1.map(|v|v.to_string()).unwrap_or("".to_owned()),36 .2.map(|v|v.to_string()).unwrap_or("".to_owned()),37 )]34 BoundsFailed(f64, Option<f64>, Option<f64>),38 BoundsFailed(f64, Option<f64>, Option<f64>),35}39}56 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {60 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {57 write!(f, "{}", self.0)?;61 write!(f, "{}", self.0)?;58 if !(self.1).0.is_empty() {62 if !(self.1).0.is_empty() {59 write!(f, "at {}", self.1)?;63 write!(f, " at {}", self.1)?;60 }64 }61 Ok(())65 Ok(())62 }66 }