Mirror of https://github.com/dtolnay/unsafe-libyaml. Part of the kade rust2024 distribution.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Tolnay 417668ce65
Some checks failed
ci.yml / Ignore uninlined_format_args pedantic clippy lint (push) Failing after 0s
Ignore uninlined_format_args pedantic clippy lint
warning: variables can be used directly in the `format!` string
       --> src/dumper.rs:261:5
        |
    261 |     write!(WriteToPtr::new(anchor), "id{:03}\0", anchor_id);
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    note: the lint level is defined here
       --> src/lib.rs:10:9
        |
    10  | #![warn(clippy::pedantic)]
        |         ^^^^^^^^^^^^^^^^
        = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
    help: change this to
        |
    261 -     write!(WriteToPtr::new(anchor), "id{:03}\0", anchor_id);
    261 +     write!(WriteToPtr::new(anchor), "id{anchor_id:03}\0");
        |

    warning: variables can be used directly in the `format!` string
       --> src/bin/run-parser-test-suite.rs:217:21
        |
    217 |             let _ = writeln!(io::stderr(), "{}", err);
        |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    note: the lint level is defined here
       --> src/bin/run-parser-test-suite.rs:1:9
        |
    1   | #![warn(clippy::pedantic)]
        |         ^^^^^^^^^^^^^^^^
        = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
    help: change this to
        |
    217 -             let _ = writeln!(io::stderr(), "{}", err);
    217 +             let _ = writeln!(io::stderr(), "{err}");
        |

    warning: variables can be used directly in the `format!` string
       --> src/bin/run-emitter-test-suite.rs:302:21
        |
    302 |             let _ = writeln!(io::stderr(), "{}", err);
        |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    note: the lint level is defined here
       --> src/bin/run-emitter-test-suite.rs:1:9
        |
    1   | #![warn(clippy::pedantic)]
        |         ^^^^^^^^^^^^^^^^
        = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
    help: change this to
        |
    302 -             let _ = writeln!(io::stderr(), "{}", err);
    302 +             let _ = writeln!(io::stderr(), "{err}");
        |

    warning: variables can be used directly in the `format!` string
       --> src/bin/run-parser-test-suite.rs:217:21
        |
    217 |             let _ = writeln!(io::stderr(), "{}", err);
        |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    note: the lint level is defined here
       --> src/bin/run-parser-test-suite.rs:1:9
        |
    1   | #![warn(clippy::pedantic)]
        |         ^^^^^^^^^^^^^^^^
        = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
    help: change this to
        |
    217 -             let _ = writeln!(io::stderr(), "{}", err);
    217 +             let _ = writeln!(io::stderr(), "{err}");
        |

    warning: variables can be used directly in the `format!` string
      --> tests/test_parser_error.rs:25:9
       |
    25 |         eprint!("{}", stdout);
       |         ^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
       = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
    help: change this to
       |
    25 -         eprint!("{}", stdout);
    25 +         eprint!("{stdout}");
       |

    warning: variables can be used directly in the `format!` string
      --> tests/test_parser_error.rs:26:9
       |
    26 |         eprint!("{}", stderr);
       |         ^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    help: change this to
       |
    26 -         eprint!("{}", stderr);
    26 +         eprint!("{stderr}");
       |

    warning: variables can be used directly in the `format!` string
      --> tests/test_parser.rs:25:5
       |
    25 |     eprint!("{}", stderr);
       |     ^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
       = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
    help: change this to
       |
    25 -     eprint!("{}", stderr);
    25 +     eprint!("{stderr}");
       |

    warning: variables can be used directly in the `format!` string
       --> src/bin/run-emitter-test-suite.rs:302:21
        |
    302 |             let _ = writeln!(io::stderr(), "{}", err);
        |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    note: the lint level is defined here
       --> src/bin/run-emitter-test-suite.rs:1:9
        |
    1   | #![warn(clippy::pedantic)]
        |         ^^^^^^^^^^^^^^^^
        = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
    help: change this to
        |
    302 -             let _ = writeln!(io::stderr(), "{}", err);
    302 +             let _ = writeln!(io::stderr(), "{err}");
        |

    warning: variables can be used directly in the `format!` string
      --> tests/test_emitter.rs:25:5
       |
    25 |     eprint!("{}", stderr);
       |     ^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
       = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
    help: change this to
       |
    25 -     eprint!("{}", stderr);
    25 +     eprint!("{stderr}");
       |
2024-03-20 23:30:29 -07:00
.github Raise required compiler to rust 1.60 2024-03-20 23:23:18 -07:00
fuzz Drop braces from fuzz closure 2023-08-10 19:21:01 -07:00
src Ignore uninlined_format_args pedantic clippy lint 2024-03-20 23:30:29 -07:00
tests Ignore uninlined_format_args pedantic clippy lint 2024-03-20 23:30:29 -07:00
.gitignore Add parser fuzz target 2022-07-08 12:54:44 -07:00
Cargo.toml Raise required compiler to rust 1.60 2024-03-20 23:23:18 -07:00
LICENSE-MIT MIT license 2022-07-03 07:58:18 -07:00
README.md Raise required compiler to rust 1.60 2024-03-20 23:23:18 -07:00

unsafe-libyaml

github crates.io docs.rs build status

This library is libyaml translated from C to unsafe Rust with the assistance of c2rust.

[dependencies]
unsafe-libyaml = "0.2"

Compiler support: requires rustc 1.60+

License

MIT license, same as libyaml.