Skip to content

Commit 2be7ad5

Browse files
whodiManishearth
authored andcommitted
initialization misspell
1 parent fb1934b commit 2be7ad5

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

clippy_dev/src/setup/git_hook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn install_hook(force_override: bool) {
1818

1919
// So a little bit of a funny story. Git on unix requires the pre-commit file
2020
// to have the `execute` permission to be set. The Rust functions for modifying
21-
// these flags doesn't seem to work when executed with normal user permissions.
21+
// these flags doesn't seem to work when executed with normal user permissions.
2222
//
2323
// However, there is a little hack that is also being used by Rust itself in their
2424
// setup script. Git saves the `execute` flag when syncing files. This means

clippy_lints/src/types/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ impl Types {
432432
fn check_fn_decl(&mut self, cx: &LateContext<'_>, decl: &FnDecl<'_>, context: CheckTyContext) {
433433
// Ignore functions in trait implementations as they are usually forced by the trait definition.
434434
//
435-
// FIXME: ideally we would like to warn *if the complicated type can be simplified*, but it's hard to
436-
// check.
435+
// FIXME: ideally we would like to warn *if the complicated type can be simplified*, but it's hard
436+
// to check.
437437
if context.is_in_trait_impl {
438438
return;
439439
}

tests/ui/needless_late_init.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: unneeded late initalization
1+
error: unneeded late initialization
22
--> $DIR/needless_late_init.rs:5:5
33
|
44
LL | let a;
@@ -20,7 +20,7 @@ help: add a semicolon after the `match` expression
2020
LL | };
2121
| +
2222

23-
error: unneeded late initalization
23+
error: unneeded late initialization
2424
--> $DIR/needless_late_init.rs:14:5
2525
|
2626
LL | let b;
@@ -41,7 +41,7 @@ help: add a semicolon after the `if` expression
4141
LL | };
4242
| +
4343

44-
error: unneeded late initalization
44+
error: unneeded late initialization
4545
--> $DIR/needless_late_init.rs:21:5
4646
|
4747
LL | let c;
@@ -62,7 +62,7 @@ help: add a semicolon after the `if` expression
6262
LL | };
6363
| +
6464

65-
error: unneeded late initalization
65+
error: unneeded late initialization
6666
--> $DIR/needless_late_init.rs:28:5
6767
|
6868
LL | let d;
@@ -83,7 +83,7 @@ help: add a semicolon after the `if` expression
8383
LL | };
8484
| +
8585

86-
error: unneeded late initalization
86+
error: unneeded late initialization
8787
--> $DIR/needless_late_init.rs:36:5
8888
|
8989
LL | let e;
@@ -104,7 +104,7 @@ help: add a semicolon after the `if` expression
104104
LL | };
105105
| +
106106

107-
error: unneeded late initalization
107+
error: unneeded late initialization
108108
--> $DIR/needless_late_init.rs:43:5
109109
|
110110
LL | let f;
@@ -120,7 +120,7 @@ LL - 1 => f = "three",
120120
LL + 1 => "three",
121121
|
122122

123-
error: unneeded late initalization
123+
error: unneeded late initialization
124124
--> $DIR/needless_late_init.rs:49:5
125125
|
126126
LL | let g: usize;
@@ -140,7 +140,7 @@ help: add a semicolon after the `if` expression
140140
LL | };
141141
| +
142142

143-
error: unneeded late initalization
143+
error: unneeded late initialization
144144
--> $DIR/needless_late_init.rs:64:5
145145
|
146146
LL | let a;
@@ -161,7 +161,7 @@ help: add a semicolon after the `match` expression
161161
LL | };
162162
| +
163163

164-
error: unneeded late initalization
164+
error: unneeded late initialization
165165
--> $DIR/needless_late_init.rs:81:5
166166
|
167167
LL | let a;

tests/ui/needless_late_init_fixable.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: unneeded late initalization
1+
error: unneeded late initialization
22
--> $DIR/needless_late_init_fixable.rs:6:5
33
|
44
LL | let a;
@@ -10,7 +10,7 @@ help: declare `a` here
1010
LL | let a = "zero";
1111
| ~~~~~
1212

13-
error: unneeded late initalization
13+
error: unneeded late initialization
1414
--> $DIR/needless_late_init_fixable.rs:9:5
1515
|
1616
LL | let b;
@@ -21,7 +21,7 @@ help: declare `b` here
2121
LL | let b = 1;
2222
| ~~~~~
2323

24-
error: unneeded late initalization
24+
error: unneeded late initialization
2525
--> $DIR/needless_late_init_fixable.rs:10:5
2626
|
2727
LL | let c;
@@ -32,7 +32,7 @@ help: declare `c` here
3232
LL | let c = 2;
3333
| ~~~~~
3434

35-
error: unneeded late initalization
35+
error: unneeded late initialization
3636
--> $DIR/needless_late_init_fixable.rs:14:5
3737
|
3838
LL | let d: usize;
@@ -43,7 +43,7 @@ help: declare `d` here
4343
LL | let d: usize = 1;
4444
| ~~~~~~~~~~~~
4545

46-
error: unneeded late initalization
46+
error: unneeded late initialization
4747
--> $DIR/needless_late_init_fixable.rs:17:5
4848
|
4949
LL | let mut e;
@@ -54,7 +54,7 @@ help: declare `e` here
5454
LL | let mut e = 1;
5555
| ~~~~~~~~~
5656

57-
error: unneeded late initalization
57+
error: unneeded late initialization
5858
--> $DIR/needless_late_init_fixable.rs:21:5
5959
|
6060
LL | let h;

0 commit comments

Comments
 (0)