Skip to content

Commit

Permalink
style: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-melnychuk committed Feb 29, 2024
1 parent e5c22b9 commit e163d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/api/src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub use gen::*;
#[allow(non_snake_case)]
#[allow(unused_variables)]
#[allow(clippy::enum_variant_names)]
#[allow(clippy::module_inception)]
pub mod gen {
use serde::{Deserialize, Serialize};
use serde_json::Value;
Expand Down
2 changes: 1 addition & 1 deletion crates/api/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use tokio::net::TcpListener;
use super::gen::*;

pub async fn serve(url: &str, bind: &str) {
let ctx = Context { client: Arc::new(gen::client::Client::new(&url)) };
let ctx = Context { client: Arc::new(gen::client::Client::new(url)) };

let app = Router::new().route("/rpc", post(handle_request)).with_state(ctx);

Expand Down

0 comments on commit e163d35

Please sign in to comment.