difftreelog
chore use debug-form of strings when printing errors in parse intrinsics
in: master
1 file changed
crates/jrsonnet-stdlib/src/strings.rsdiffbeforeafterboth50 Ok(str.to_ascii_lowercase())50 Ok(str.to_ascii_lowercase())51}51}5253pub fn repeat(what: Either![IStr, ArrValue], count: i32) {54 joi55}525653#[builtin]57#[builtin]54pub fn builtin_find_substr(pat: IStr, str: IStr) -> Result<ArrValue> {58pub fn builtin_find_substr(pat: IStr, str: IStr) -> Result<ArrValue> {89 parse_nat::<10>(raw.as_str())93 parse_nat::<10>(raw.as_str())90 }94 }91 } else {95 } else {92 throw!("Empty decimal integer \"{}\"", raw);96 throw!("Empty decimal integer",);93 }97 }94}98}9599145 if digit < BASE {149 if digit < BASE {146 Ok(base * aggregate + digit as f64)150 Ok(base * aggregate + digit as f64)147 } else {151 } else {148 throw!("\"{raw}\" is not a base {BASE} integer",);152 throw!("{raw:?} is not a base {BASE} integer",);149 }153 }150 })154 })151}155}