@@ -92,11 +92,11 @@ fn allow_path_wildcards_public_package() {
92
92
let diags = gather_bans (
93
93
func_name ! ( ) ,
94
94
KrateGather :: new ( "wildcards/allow-paths-public" ) ,
95
- r# "
95
+ r"
96
96
multiple-versions = 'allow'
97
97
wildcards = 'deny'
98
98
allow-wildcard-paths = true
99
- "# ,
99
+ " ,
100
100
) ;
101
101
102
102
insta:: assert_json_snapshot!( diags) ;
@@ -108,11 +108,11 @@ fn allow_path_wildcards_private_package() {
108
108
let diags = gather_bans (
109
109
func_name ! ( ) ,
110
110
KrateGather :: new ( "wildcards/allow-paths-private" ) ,
111
- r# "
111
+ r"
112
112
multiple-versions = 'allow'
113
113
wildcards = 'deny'
114
114
allow-wildcard-paths = true
115
- "# ,
115
+ " ,
116
116
) ;
117
117
118
118
insta:: assert_json_snapshot!( diags) ;
@@ -138,11 +138,11 @@ fn ignores_unpublished_crates() {
138
138
func_name ! ( ) ,
139
139
// If either the workspace `root` or `member-one` crates are pulled in,
140
140
// they will emit diagnostics that won't be emitted by just including member-two
141
- r# "
141
+ r"
142
142
multiple-versions = 'allow'
143
143
wildcards = 'deny'
144
144
allow-wildcard-paths = true
145
- "#
145
+ "
146
146
. into ( ) ,
147
147
|ctx, tx| {
148
148
cargo_deny:: bans:: check ( ctx, None , tx) ;
@@ -158,11 +158,11 @@ fn allow_git_wildcards_private_package() {
158
158
let diags = gather_bans (
159
159
func_name ! ( ) ,
160
160
KrateGather :: new ( "wildcards/allow-git" ) ,
161
- r# "
161
+ r"
162
162
multiple-versions = 'allow'
163
163
wildcards = 'deny'
164
164
allow-wildcard-paths = true
165
- "# ,
165
+ " ,
166
166
) ;
167
167
168
168
insta:: assert_json_snapshot!( diags) ;
@@ -176,10 +176,10 @@ fn deterministic_duplicate_ordering() {
176
176
let diags = gather_bans (
177
177
func_name ! ( ) ,
178
178
KrateGather :: new ( "duplicates" ) ,
179
- r# "
179
+ r"
180
180
multiple-versions = 'deny'
181
181
multiple-versions-include-dev = true
182
- "# ,
182
+ " ,
183
183
) ;
184
184
185
185
insta:: assert_json_snapshot!( diags) ;
@@ -208,10 +208,10 @@ fn duplicate_graphs() {
208
208
use cargo_deny:: bans;
209
209
210
210
let krates = KrateGather :: new ( "duplicates" ) . gather ( ) ;
211
- let cfg = r# "
211
+ let cfg = r"
212
212
multiple-versions = 'deny'
213
213
multiple-versions-include-dev = true
214
- "#
214
+ "
215
215
. into ( ) ;
216
216
217
217
let dup_graphs = std:: sync:: Arc :: new ( parking_lot:: Mutex :: new ( Vec :: new ( ) ) ) ;
@@ -238,14 +238,14 @@ fn deny_multiple_versions_for_specific_krates() {
238
238
let diags = gather_bans (
239
239
func_name ! ( ) ,
240
240
KrateGather :: new ( "duplicates" ) ,
241
- r# "
241
+ r"
242
242
multiple-versions = 'allow'
243
243
multiple-versions-include-dev = true
244
244
deny = [
245
245
{ name = 'block-buffer', deny-multiple-versions = true },
246
246
{ name = 'generic-array', deny-multiple-versions = true },
247
247
]
248
- "# ,
248
+ " ,
249
249
) ;
250
250
251
251
insta:: assert_json_snapshot!( diags) ;
@@ -261,11 +261,11 @@ fn deny_target_specific_dependencies() {
261
261
no_default_features : true ,
262
262
..Default :: default ( )
263
263
} ,
264
- r# "
264
+ r"
265
265
deny = [
266
266
'serde'
267
267
]
268
- "# ,
268
+ " ,
269
269
) ;
270
270
271
271
insta:: assert_json_snapshot!( diags) ;
@@ -278,11 +278,11 @@ deny = [
278
278
targets : & [ "x86_64-windows-pc-msvc" ] ,
279
279
..Default :: default ( )
280
280
} ,
281
- r# "
281
+ r"
282
282
deny = [
283
283
'serde'
284
284
]
285
- "# ,
285
+ " ,
286
286
) ;
287
287
288
288
insta:: assert_json_snapshot!( diags) ;
@@ -295,11 +295,11 @@ deny = [
295
295
targets : & [ "x86_64-windows-pc-msvc" , "aarch64-linux-android" ] ,
296
296
..Default :: default ( )
297
297
} ,
298
- r# "
298
+ r"
299
299
deny = [
300
300
'serde'
301
301
]
302
- "# ,
302
+ " ,
303
303
) ;
304
304
305
305
insta:: assert_json_snapshot!( diags) ;
@@ -316,13 +316,13 @@ fn deny_duplicate_workspace_items() {
316
316
targets : & [ "x86_64-unknown-linux-gnu" , "x86_64-pc-windows-msvc" ] ,
317
317
..Default :: default ( )
318
318
} ,
319
- r# "
319
+ r"
320
320
multiple-versions = 'allow'
321
321
322
322
[workspace-dependencies]
323
323
include-path-dependencies = true
324
324
unused = 'warn'
325
- "# ,
325
+ " ,
326
326
) ;
327
327
328
328
insta:: assert_json_snapshot!( diags) ;
@@ -339,7 +339,7 @@ fn unused_skips_generate_warnings() {
339
339
targets : & [ "x86_64-unknown-linux-gnu" , "x86_64-pc-windows-msvc" ] ,
340
340
..Default :: default ( )
341
341
} ,
342
- r# "
342
+ r"
343
343
multiple-versions = 'deny'
344
344
skip = [
345
345
# This actually has 3 versions, skip the two lower ones
@@ -349,7 +349,7 @@ skip = [
349
349
# This crate is in the graph, but there is only one version
350
350
'serde_json',
351
351
]
352
- "# ,
352
+ " ,
353
353
) ;
354
354
355
355
insta:: assert_json_snapshot!( diags) ;
0 commit comments