Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vaijira committed May 7, 2023
1 parent c904283 commit cd6cf9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/parsers/ib_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ impl IBCSVParser {
}

#[cfg(test)]
#[allow(clippy::zero_prefixed_literal)]
mod tests {
use super::*;

Expand Down
2 changes: 1 addition & 1 deletion src/reports/aforix_d6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ mod tests {

let d6_form = create_d6_form(&info).unwrap();
compare_strs_by_line(
&D6_FORM_XML_RESULT.replace("\n", "\r\n"),
&D6_FORM_XML_RESULT.replace('\n', "\r\n"),
str::from_utf8(&d6_form[..]).unwrap(),
);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn check_report_content(aeat_720_report: &str) {
async fn test_all_reports_2019_chrome() -> WebDriverResult<()> {
common::setup();
let mut caps = DesiredCapabilities::chrome();
let caps = caps.set_headless()?;
caps.set_headless()?;

let driver = WebDriver::new("http://localhost:4444", &caps).await?;

Expand All @@ -84,7 +84,7 @@ async fn test_all_reports_2019_chrome() -> WebDriverResult<()> {
async fn test_all_reports_2019_firefox() -> WebDriverResult<()> {
common::setup();
let mut caps = DesiredCapabilities::firefox();
let caps = caps.set_headless()?;
caps.set_headless()?;

let driver = WebDriver::new("http://localhost:4444", &caps).await?;

Expand Down

1 comment on commit cd6cf9d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.