Skip to content

Commit 8c9b6cd

Browse files
committed
Clippy
1 parent ed12c5a commit 8c9b6cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Debug for NotA<bool> {
6060

6161
impl Display for NotA<bool> {
6262
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
63-
f.write_str(concat!("not a bool"))
63+
f.write_str("not a bool")
6464
}
6565
}
6666

@@ -87,7 +87,7 @@ impl Debug for NotA<i64> {
8787

8888
impl Display for NotA<i64> {
8989
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
90-
f.write_str(concat!("not an i64"))
90+
f.write_str("not an i64")
9191
}
9292
}
9393

@@ -114,7 +114,7 @@ impl Debug for NotA<f64> {
114114

115115
impl Display for NotA<f64> {
116116
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
117-
f.write_str(concat!("not a f64"))
117+
f.write_str("not a f64")
118118
}
119119
}
120120

@@ -141,7 +141,7 @@ impl Debug for NotA<String> {
141141

142142
impl Display for NotA<String> {
143143
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
144-
f.write_str(concat!("not a String"))
144+
f.write_str("not a String")
145145
}
146146
}
147147

0 commit comments

Comments
 (0)