Skip to content

Commit

Permalink
more clippy to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Schubert committed Nov 7, 2022
1 parent c7c74e1 commit 71a81aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/cobertura.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ mod tests {
fn test_cobertura() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_cobertura.xml";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![(
PathBuf::from("src/main.rs"),
Expand Down Expand Up @@ -738,7 +738,7 @@ mod tests {
fn test_cobertura_double_lines() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_cobertura.xml";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![(
PathBuf::from("src/main.rs"),
Expand Down Expand Up @@ -770,7 +770,7 @@ mod tests {
fn test_cobertura_multiple_files() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_cobertura.xml";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![
(
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct Opt {
- *ade* for the ActiveData-ETL specific format;\n\
- *files* to only return a list of files.\n\
- *markdown* for human easy read.\n\
- *cobertura* for output in coberura format.\n\
- *cobertura* for output in cobertura format.\n\
",
value_name = "OUTPUT TYPE",
default_value = "lcov",
Expand Down
16 changes: 8 additions & 8 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ mod tests {
fn test_lcov_brf_brh() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_lcov_brf_brh.info";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![(
PathBuf::from("foo/bar/a.cpp"),
Expand Down Expand Up @@ -700,7 +700,7 @@ mod tests {
fn test_lcov_demangle() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_lcov_demangle";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![(
PathBuf::from("foo/bar/a.cpp"),
Expand Down Expand Up @@ -749,7 +749,7 @@ mod tests {
fn test_covdir() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_covdir.json";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![
(
Expand Down Expand Up @@ -793,7 +793,7 @@ mod tests {
output_covdir(&results, Some(&file_path));

let results: Value = serde_json::from_str(&read_file(&file_path)).unwrap();
let expected_path = PathBuf::from("./test/").join(&file_name);
let expected_path = PathBuf::from("./test/").join(file_name);
let expected: Value = serde_json::from_str(&read_file(&expected_path)).unwrap();

assert_eq!(results, expected);
Expand All @@ -803,7 +803,7 @@ mod tests {
fn test_coveralls_service_job_id() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_coveralls_service_job_id.json";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![(
PathBuf::from("foo/bar/a.cpp"),
Expand Down Expand Up @@ -842,7 +842,7 @@ mod tests {
fn test_coveralls_token_field_is_absent_if_arg_is_none() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_coveralls_token.json";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![(
PathBuf::from("foo/bar/a.cpp"),
Expand Down Expand Up @@ -881,7 +881,7 @@ mod tests {
fn test_coveralls_service_fields_are_absent_if_args_are_none() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_coveralls_service_fields.json";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![(
PathBuf::from("foo/bar/a.cpp"),
Expand Down Expand Up @@ -922,7 +922,7 @@ mod tests {
fn test_markdown() {
let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let file_name = "test_markdown";
let file_path = tmp_dir.path().join(&file_name);
let file_path = tmp_dir.path().join(file_name);

let results = vec![
(
Expand Down

0 comments on commit 71a81aa

Please sign in to comment.