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
|
|
@ -12,7 +12,7 @@ use serde_json::Value as Json; // name clash with *our* `Value`
|
|||
use serde_json::{Map, Number};
|
||||
|
||||
impl Value {
|
||||
pub(crate) async fn to_json(
|
||||
pub(crate) async fn into_json(
|
||||
self,
|
||||
co: &GenCo,
|
||||
) -> Result<Result<Json, CatchableErrorKind>, ErrorKind> {
|
||||
|
|
@ -86,8 +86,8 @@ impl Value {
|
|||
|
||||
/// Generator version of the above, which wraps responses in
|
||||
/// Value::Json.
|
||||
pub(crate) async fn to_json_generator(self, co: GenCo) -> Result<Value, ErrorKind> {
|
||||
match self.to_json(&co).await? {
|
||||
pub(crate) async fn into_json_generator(self, co: GenCo) -> Result<Value, ErrorKind> {
|
||||
match self.into_json(&co).await? {
|
||||
Err(cek) => Ok(Value::Catchable(cek)),
|
||||
Ok(json) => Ok(Value::Json(json)),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue