chore(tvix): fix trivial clippy lints
Relates to b/321. Change-Id: I37284f89b186e469eb432e2bbedb37aa125a6ad4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9961 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
67999f0dcf
commit
b3b1f649d6
14 changed files with 35 additions and 36 deletions
|
|
@ -353,7 +353,7 @@ mod pure_builtins {
|
|||
|
||||
#[builtin("toJSON")]
|
||||
async fn builtin_to_json(co: GenCo, val: Value) -> Result<Value, ErrorKind> {
|
||||
match val.to_json(&co).await? {
|
||||
match val.into_json(&co).await? {
|
||||
Err(cek) => Ok(Value::Catchable(cek)),
|
||||
Ok(json_value) => {
|
||||
let json_str = serde_json::to_string(&json_value)?;
|
||||
|
|
@ -1007,7 +1007,7 @@ mod pure_builtins {
|
|||
#[builtin("toPath")]
|
||||
async fn builtin_to_path(co: GenCo, s: Value) -> Result<Value, ErrorKind> {
|
||||
match coerce_value_to_path(&co, s).await? {
|
||||
Err(cek) => return Ok(Value::Catchable(cek)),
|
||||
Err(cek) => Ok(Value::Catchable(cek)),
|
||||
Ok(path) => {
|
||||
let path: Value = crate::value::canon_path(path).into();
|
||||
Ok(path.coerce_to_string(co, CoercionKind::Weak).await?)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue