File tree 3 files changed +34
-2
lines changed
malloc_size_of_derive/src
3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 60
60
- name : Run clippy
61
61
run : cargo clippy --all-features --all-targets -- -D warnings
62
62
63
+ # If this fails, consider changing your text or adding something to .typos.toml.
64
+ typos :
65
+ runs-on : ubuntu-latest
66
+ steps :
67
+ - uses : actions/checkout@v4
68
+ - name : Check typos
69
+
70
+
63
71
build_result :
64
72
name : Result
65
73
runs-on : ubuntu-latest
@@ -68,11 +76,12 @@ jobs:
68
76
- format
69
77
- clippy
70
78
- msrv
79
+ - typos
71
80
72
81
steps :
73
82
- name : Success
74
83
if : ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
75
84
run : exit 0
76
85
- name : Failure
77
86
if : contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
78
- run : exit 1
87
+ run : exit 1
Original file line number Diff line number Diff line change
1
+ # See the configuration reference at
2
+ # https://github.com/crate-ci/typos/blob/master/docs/reference.md
3
+
4
+ # Corrections take the form of a key/value pair. The key is the incorrect word
5
+ # and the value is the correct word. If the key and value are the same, the
6
+ # word is treated as always correct. If the value is an empty string, the word
7
+ # is treated as always incorrect.
8
+
9
+ # Match Identifier - Case Sensitive
10
+ [default .extend-identifiers ]
11
+ colour = " color"
12
+
13
+ # Match Inside a Word - Case Insensitive
14
+ [default .extend-words ]
15
+
16
+ [files ]
17
+ # Include .github, .cargo, etc.
18
+ ignore-hidden = false
19
+ extend-exclude = [
20
+ # /.git isn't in .gitignore, because git never tracks it.
21
+ # Typos doesn't know that, though.
22
+ " /.git" ,
23
+ ]
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ fn test_struct() {
114
114
assert_eq!(
115
115
no_space. matches( & $e. replace( " " , "" ) ) . count( ) ,
116
116
$count,
117
- "counting occurences of {:?} in {:?} (whitespace-insensitive)" ,
117
+ "counting occurrences of {:?} in {:?} (whitespace-insensitive)" ,
118
118
$e,
119
119
expanded
120
120
)
You can’t perform that action at this time.
0 commit comments