cargo clippy

This commit is contained in:
Dongri Jin
2025-07-10 16:10:45 +09:00
parent 65c49a6fdf
commit bb59b45eff
5 changed files with 45 additions and 52 deletions

View File

@ -44,7 +44,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let result = client.retrieve_file_content(file_id).await?;
let s = match str::from_utf8(&result) {
Ok(v) => v.to_string(),
Err(e) => panic!("Invalid UTF-8 sequence: {}", e),
Err(e) => panic!("Invalid UTF-8 sequence: {e}"),
};
let json_value: Value = from_str(&s)?;
let result_json = to_string_pretty(&json_value)?;