Commit graph

18 commits

Author SHA1 Message Date
Simon Ask Ulsnes
5ebedb67ec More lints 2024-02-03 10:39:04 +01:00
Simon Ask Ulsnes
9238cd0412 Replace yaml_emitter_initialize with safe alternative 2024-02-02 10:10:24 +01:00
David Tolnay
09ae09301c
Resolve needless_borrow pedantic clippy lint in test
error: the borrowed expression implements the required traits
      --> tests/data/lib.rs:36:31
       |
    36 |     for entry in fs::read_dir(&yaml_test_suite).unwrap() {
       |                               ^^^^^^^^^^^^^^^^ help: change this to: `yaml_test_suite`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
       = note: `-D clippy::needless-borrow` implied by `-D clippy::all`
2022-10-24 21:42:13 -07:00
David Tolnay
447a4caa09
Resolve needless_borrow pedantic clippy lint in test
error: the borrowed expression implements the required traits
      --> tests/data/build.rs:23:43
       |
    23 |     let response = reqwest::blocking::get(&url)?.error_for_status()?;
       |                                           ^^^^ help: change this to: `url`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
       = note: `-D clippy::needless-borrow` implied by `-D clippy::all`
2022-10-24 21:33:15 -07:00
David Tolnay
6a235b324e
Ignore uninlined_format_args pedantic clippy lint
error: variables can be used directly in the `format!` string
      --> tests/data/build.rs:24:18
       |
    24 |     let prefix = format!("yaml-test-suite-{}", TAG);
       |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
       = note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic`
    help: change this to
       |
    24 -     let prefix = format!("yaml-test-suite-{}", TAG);
    24 +     let prefix = format!("yaml-test-suite-{TAG}");
       |
2022-10-07 22:25:36 -07:00
David Tolnay
4943da1452
Add authors to Cargo.toml 2022-07-31 19:25:47 -07:00
David Tolnay
caad63746c
Deal with clippy lints 2022-07-08 12:54:44 -07:00
David Tolnay
d1a5075546
Make test suite runnable in miri 2022-07-08 12:54:43 -07:00
David Tolnay
47958607e0
Sort macro-generated tests 2022-07-03 13:54:32 -07:00
David Tolnay
56e2024c8e
Hyphen in bin names like in upstream libyaml 2022-07-03 13:43:46 -07:00
David Tolnay
1e8cabe9d3
Move libyaml test bins out of tests dir 2022-07-03 13:40:24 -07:00
David Tolnay
0d545fea4b
Wire up yaml-test-suite 2022-07-03 13:37:06 -07:00
David Tolnay
aebf6a7924
C2RustUnnamed -> Unnamed 2022-07-03 09:19:20 -07:00
David Tolnay
0c5a4d7cf4
Move run_*.rs to bin 2022-07-03 08:49:16 -07:00
David Tolnay
442da50871
Move example_*.rs to examples 2022-07-03 08:48:34 -07:00
David Tolnay
eca6015d0b
Drop libc dependency 2022-07-03 08:33:54 -07:00
David Tolnay
f0650a8f8b
Test suite attributes 2022-07-03 08:27:59 -07:00
David Tolnay
51652a386b
Move tests out of src dir 2022-07-03 08:23:06 -07:00