difftreelog
style fix clippy warnings
in: master
2 files changed
crates/jrsonnet-evaluator/src/builtin/mod.rsdiffbeforeafterboth448448449#[jrsonnet_macros::builtin]449#[jrsonnet_macros::builtin]450fn builtin_encode_utf8(str: IStr) -> Result<Bytes> {450fn builtin_encode_utf8(str: IStr) -> Result<Bytes> {451 Ok(Bytes(str.bytes().map(|b| b).collect::<Vec<u8>>().into()))451 Ok(Bytes(str.bytes().collect::<Vec<u8>>().into()))452}452}453453454#[jrsonnet_macros::builtin]454#[jrsonnet_macros::builtin]crates/jrsonnet-evaluator/src/typed/conversions.rsdiffbeforeafterboth343 type Error = LocError;343 type Error = LocError;344344345 fn try_from(value: Bytes) -> Result<Self> {345 fn try_from(value: Bytes) -> Result<Self> {346 Ok(Val::Arr(ArrValue::Bytes(value.0)))346 Ok(Self::Arr(ArrValue::Bytes(value.0)))347 }347 }348}348}349349