git.delta.rocks / jrsonnet / refs/commits / 7123b5d87a7d

difftreelog

style fix clippy warnings

Yaroslav Bolyukin2022-04-20parent: #74199ce.patch.diff
in: master

2 files changed

modifiedcrates/jrsonnet-evaluator/src/builtin/mod.rsdiffbeforeafterboth
448448
449#[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}
453453
454#[jrsonnet_macros::builtin]454#[jrsonnet_macros::builtin]
modifiedcrates/jrsonnet-evaluator/src/typed/conversions.rsdiffbeforeafterboth
343 type Error = LocError;343 type Error = LocError;
344344
345 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