Skip to content

Commit 24ba3cd

Browse files
committed
clean up some imports
1 parent 5605131 commit 24ba3cd

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

api/src/main.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
use axum::{
2-
http::header::{CONTENT_TYPE, USER_AGENT},
3-
http::Method,
4-
http::StatusCode,
2+
http::{header::{CONTENT_TYPE, USER_AGENT}, Method, StatusCode},
53
response::Html,
64
routing::{delete, get, patch, post},
75
Json, Router,
86
};
9-
use csv;
107
use dotenv::dotenv;
11-
use model;
128
use model::util;
139
use model::util::{get_sample_block, train_handler_wrapper, Data, DataInfo, DataSingle, Weights};
1410
use serde_json::{json, Value};

model/src/util.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::model::Model;
2-
use rand;
32
use rand::distributions::uniform;
43
use rand::seq::SliceRandom;
54
use rand::Rng;

site/src/home.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::sync::{Arc, Mutex};
1010
use wasm_bindgen::JsCast;
1111
use wasm_bindgen_futures::spawn_local;
1212
use web_sys::{EventTarget, HtmlInputElement};
13-
use yew::{function_component, html, prelude::*, Html};
13+
use yew::{function_component, html, prelude::*};
1414
use yew_agent::reactor::{use_reactor_bridge, ReactorEvent};
1515

1616
#[function_component(Home)]

0 commit comments

Comments
 (0)