Skip to content

Commit 812bf2f

Browse files
committed
chore: clean up a few clippy warnings
1 parent a4f4463 commit 812bf2f

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

src/config/rt/serve.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ pub struct RtcServe {
3232
pub open: bool,
3333
/// Any proxies configured to run along with the server.
3434
pub proxies: Vec<Proxy>,
35-
/// Whether to disable auto-reload of the web page when a build completes.
36-
pub no_autoreload: bool,
3735
/// Whether to disable fallback to index.html for missing files.
3836
pub no_spa: bool,
3937
/// Additional headers to include in responses.
@@ -78,7 +76,8 @@ impl RtcServe {
7876
addresses,
7977
prefer_address_family,
8078
port,
81-
no_autoreload,
79+
// auto-reload is handle by the builder options
80+
no_autoreload: _,
8281
headers,
8382
no_error_reporting: _, // handled via the options, as it's only a configuration option in the case of "serve"
8483
no_spa,
@@ -87,6 +86,7 @@ impl RtcServe {
8786
tls_key_path,
8887
tls_cert_path,
8988
serve_base,
89+
// single proxy config is being transformed into global proxies vec
9090
proxy_backend: _,
9191
proxy_rewrite: _,
9292
proxy_ws: _,
@@ -106,7 +106,6 @@ impl RtcServe {
106106
port,
107107
open,
108108
proxies: config.proxies.0,
109-
no_autoreload,
110109
no_spa,
111110
headers,
112111
ws_protocol,

src/pipelines/rust/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -615,12 +615,6 @@ impl RustApp {
615615
.context("error writing loader shim script")?;
616616
}
617617

618-
let ts_output = if self.typescript {
619-
Some(hashed_ts_name)
620-
} else {
621-
None
622-
};
623-
624618
// Check for any snippets, and copy them over.
625619
let snippets_dir_src = bindgen_out.join(SNIPPETS_DIR);
626620
let snippets = if path_exists(&snippets_dir_src).await? {
@@ -695,8 +689,6 @@ impl RustApp {
695689
js_output: hashed_js_name,
696690
wasm_output: hashed_wasm_name,
697691
wasm_size,
698-
ts_output,
699-
loader_shim_output: hashed_loader_name,
700692
r#type: self.app_type,
701693
cross_origin: self.cross_origin,
702694
integrities: self.sri.clone(),

src/pipelines/rust/output.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ pub struct RustAppOutput {
1919
pub wasm_output: String,
2020
/// The size of the WASM file
2121
pub wasm_size: u64,
22-
/// The filename of the generated .ts file written to the dist dir.
23-
pub ts_output: Option<String>,
24-
/// The filename of the generated loader shim script for web workers written to the dist dir.
25-
pub loader_shim_output: Option<String>,
2622
/// Is this module main or a worker.
2723
pub r#type: RustAppType,
2824
/// The cross-origin setting for loading the resources

src/serve/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ pub struct State {
275275
pub ws_state: watch::Receiver<ws::State>,
276276
/// The path to the autoreload websocket
277277
pub ws_base: String,
278-
/// Whether to disable autoreload
279-
pub no_autoreload: bool,
280278
/// Additional headers to add to responses.
281279
pub headers: HashMap<String, String>,
282280
}
@@ -299,7 +297,6 @@ impl State {
299297
serve_base,
300298
ws_state,
301299
ws_base,
302-
no_autoreload: cfg.no_autoreload,
303300
headers: cfg.headers.clone(),
304301
})
305302
}

0 commit comments

Comments
 (0)