Skip to content

Commit b9da0e2

Browse files
committed
add example
1 parent a88d2ba commit b9da0e2

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

examples/uninlined-format-args/Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "uninlined-format-args"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
10+
[lints.clippy]
11+
#pedantic = "deny"
12+
pedantic = { priority = -1, level = "deny" }
13+
uninlined_format_args = "allow"
14+
no_effect_underscore_binding = "allow"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn main() {
2+
let name = "Rust";
3+
let _x = 1;
4+
println!("Hello, {}!", name);
5+
}

0 commit comments

Comments
 (0)