misc: Fix beta clippy issues

Fixing the following clippy issue using `cargo clippy --fix`:

error: variables can be used directly in the `format!` string
  --> build.rs:25:27
   |
25 |         version.push_str(&format!("-{}", extra_version));
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
Bo Chen
2025-05-12 21:00:24 +00:00
committed by Jinank Jain
parent 8f402687ce
commit 10ee003d66
10 changed files with 67 additions and 74 deletions

View File

@@ -70,8 +70,8 @@ impl Display for HttpError {
NotFound => write!(f, "Not Found"),
TooManyRequests => write!(f, "Too Many Requests"),
InternalServerError => write!(f, "Internal Server Error"),
SerdeJsonDeserialize(serde_error) => write!(f, "{}", serde_error),
ApiError(api_error) => write!(f, "{}", api_error),
SerdeJsonDeserialize(serde_error) => write!(f, "{serde_error}"),
ApiError(api_error) => write!(f, "{api_error}"),
}
}
}