Skip to content

Commit

Permalink
fix lint issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joinhack committed Aug 26, 2024
1 parent c2ec150 commit e3e7126
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/apis/src/fetch_io/blockless.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(dead_code)]
use std::cmp::Ordering;
use serde_json::{json, Value};
use crate::fetch_io::FetchOptions;
Expand Down
5 changes: 4 additions & 1 deletion crates/apis/src/fetch_io/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(dead_code)]
mod blockless;

use std::collections::HashMap;
Expand All @@ -23,12 +24,14 @@ impl FetchOptions {
method: method.into()
}
}


#[allow(clippy::inherent_to_string)]
pub fn to_string(&self) -> String {
serde_json::to_string(&self).unwrap()
}
}


impl JSApiSet for FetchIO {
fn register(&self, runtime: &Runtime, _config: &APIConfig) -> Result<()> {
let context = runtime.context();
Expand Down

0 comments on commit e3e7126

Please sign in to comment.