Skip to content

Commit 2eb41ff

Browse files
committed
add clippy run for plotly_static features
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent ce71401 commit 2eb41ff

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
with:
4343
components: clippy
4444
targets: wasm32-unknown-unknown
45+
# lint plotly_static for all features
46+
- run: cargo clippy -p plotly_static --features geckodriver,webdriver_download -- -D warnings -A deprecated
47+
- run: cargo clippy -p plotly_static --features chromedriver,webdriver_download -- -D warnings -A deprecated
4548
# lint the main library workspace for non-wasm target
4649
- run: cargo clippy --features all -- -D warnings -A deprecated
4750
# lint the non-wasm examples

plotly_static/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ impl StaticExporter {
10981098
#[cfg(feature = "geckodriver")]
10991099
if let Ok(firefox_path) = std::env::var("BROWSER_PATH") {
11001100
browser_opts.insert("binary".to_string(), serde_json::json!(firefox_path));
1101-
debug!("Added Firefox binary capability: {}", firefox_path);
1101+
debug!("Added Firefox binary capability: {firefox_path}");
11021102
}
11031103

11041104
caps.insert(
@@ -1335,7 +1335,7 @@ mod tests {
13351335
.pdf_export_timeout(750)
13361336
.build()
13371337
.unwrap();
1338-
1338+
13391339
#[cfg(not(feature = "ci"))]
13401340
let mut exporter = StaticExporterBuilder::default()
13411341
.spawn_webdriver(true)

0 commit comments

Comments
 (0)