Skip to content

Commit

Permalink
No anonymous parameters
Browse files Browse the repository at this point in the history
Otherwise we get this and the appveyor build fails:

```
warning: anonymous parameters are deprecated and will be removed in the next edition.
  --> tests\tests.rs:68:18
   |
68 |     fn from_vecs(CsvVecs) -> Self;
   |                  ^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: CsvVecs`
   |
   = note: `#[warn(anonymous_parameters)]` on by default
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
   = note: for more information, see issue #41686 <rust-lang/rust#41686>
error: linking with `i686-w64-mingw32-gcc` failed: exit code: 1
```
  • Loading branch information
jqnatividad committed Sep 16, 2021
1 parent cacb7d6 commit 062a7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub type CsvVecs = Vec<Vec<String>>;

pub trait Csv {
fn to_vecs(self) -> CsvVecs;
fn from_vecs(CsvVecs) -> Self;
fn from_vecs(vecs: CsvVecs) -> Self;
}

impl Csv for CsvVecs {
Expand Down

0 comments on commit 062a7d1

Please sign in to comment.