Mirror of https://github.com/dtolnay/unsafe-libyaml. Part of the kade rust2024 distribution.
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks failed
ci.yml / Ignore uninlined_format_args pedantic clippy lint (push) Failing after 0s
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}");
|
|
||
| .github | ||
| fuzz | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE-MIT | ||
| README.md | ||
unsafe-libyaml
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.