Skip to content

Commit ac92fd4

Browse files
committed
chore: clean up issue brought up by newer clippy versions
1 parent a78d4ea commit ac92fd4

File tree

5 files changed

+3
-29
lines changed

5 files changed

+3
-29
lines changed

src/config/models/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::needless_borrows_for_generic_args)]
2+
13
use crate::config::{RtcBuild, RtcClean, RtcServe, RtcWatch};
24
use anyhow::{Context, Result};
35
use axum::http::Uri;

src/config/rt/serve.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ pub struct RtcServe {
3737
pub proxy_no_sys_proxy: bool,
3838
/// Any proxies configured to run along with the server.
3939
pub proxies: Option<Vec<ConfigOptsProxy>>,
40-
/// Whether to disable auto-reload of the web page when a build completes.
41-
pub no_autoreload: bool,
4240
/// Whether to disable fallback to index.html for missing files.
4341
pub no_spa: bool,
4442
/// Additional headers to include in responses.
@@ -95,7 +93,6 @@ impl RtcServe {
9593
proxy_no_sys_proxy: opts.proxy_no_system_proxy,
9694
proxy_ws: opts.proxy_ws,
9795
proxies,
98-
no_autoreload: opts.no_autoreload,
9996
no_spa: opts.no_spa,
10097
headers: opts.headers,
10198
ws_protocol: opts.ws_protocol,

src/pipelines/rust/mod.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ use crate::{
1515
},
1616
config::{CargoMetadata, CrossOrigin, Features, RtcBuild},
1717
pipelines::rust::sri::{SriBuilder, SriOptions, SriType},
18-
processing::{
19-
integrity::{IntegrityType, OutputDigest},
20-
minify::minify_js,
21-
},
18+
processing::{integrity::IntegrityType, minify::minify_js},
2219
tools::{self, Application},
2320
};
2421
use anyhow::{anyhow, bail, ensure, Context, Result};
@@ -616,12 +613,6 @@ impl RustApp {
616613
.context("error writing loader shim script")?;
617614
}
618615

619-
let ts_output = if self.typescript {
620-
Some(hashed_ts_name)
621-
} else {
622-
None
623-
};
624-
625616
// Check for any snippets, and copy them over.
626617
let snippets_dir_src = bindgen_out.join(SNIPPETS_DIR);
627618
let snippets = if path_exists(&snippets_dir_src).await? {
@@ -696,8 +687,6 @@ impl RustApp {
696687
js_output: hashed_js_name,
697688
wasm_output: hashed_wasm_name,
698689
wasm_size,
699-
ts_output,
700-
loader_shim_output: hashed_loader_name,
701690
r#type: self.app_type,
702691
cross_origin: self.cross_origin,
703692
integrities: self.sri.clone(),
@@ -906,10 +895,3 @@ impl RustApp {
906895
Ok(())
907896
}
908897
}
909-
910-
/// Integrity of outputs
911-
#[derive(Debug, Default)]
912-
pub struct IntegrityOutput {
913-
pub wasm: OutputDigest,
914-
pub js: OutputDigest,
915-
}

src/pipelines/rust/output.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ pub struct RustAppOutput {
2020
pub wasm_output: String,
2121
/// The size of the WASM file
2222
pub wasm_size: u64,
23-
/// The filename of the generated .ts file written to the dist dir.
24-
pub ts_output: Option<String>,
25-
/// The filename of the generated loader shim script for web workers written to the dist dir.
26-
pub loader_shim_output: Option<String>,
2723
/// Is this module main or a worker.
2824
pub r#type: RustAppType,
2925
/// 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)