@@ -92,11 +92,11 @@ fn allow_path_wildcards_public_package() {
9292 let diags = gather_bans (
9393 func_name ! ( ) ,
9494 KrateGather :: new ( "wildcards/allow-paths-public" ) ,
95- r# "
95+ r"
9696multiple-versions = 'allow'
9797wildcards = 'deny'
9898allow-wildcard-paths = true
99- "# ,
99+ " ,
100100 ) ;
101101
102102 insta:: assert_json_snapshot!( diags) ;
@@ -108,11 +108,11 @@ fn allow_path_wildcards_private_package() {
108108 let diags = gather_bans (
109109 func_name ! ( ) ,
110110 KrateGather :: new ( "wildcards/allow-paths-private" ) ,
111- r# "
111+ r"
112112multiple-versions = 'allow'
113113wildcards = 'deny'
114114allow-wildcard-paths = true
115- "# ,
115+ " ,
116116 ) ;
117117
118118 insta:: assert_json_snapshot!( diags) ;
@@ -138,11 +138,11 @@ fn ignores_unpublished_crates() {
138138 func_name ! ( ) ,
139139 // If either the workspace `root` or `member-one` crates are pulled in,
140140 // they will emit diagnostics that won't be emitted by just including member-two
141- r# "
141+ r"
142142multiple-versions = 'allow'
143143wildcards = 'deny'
144144allow-wildcard-paths = true
145- "#
145+ "
146146 . into ( ) ,
147147 |ctx, tx| {
148148 cargo_deny:: bans:: check ( ctx, None , tx) ;
@@ -158,11 +158,11 @@ fn allow_git_wildcards_private_package() {
158158 let diags = gather_bans (
159159 func_name ! ( ) ,
160160 KrateGather :: new ( "wildcards/allow-git" ) ,
161- r# "
161+ r"
162162multiple-versions = 'allow'
163163wildcards = 'deny'
164164allow-wildcard-paths = true
165- "# ,
165+ " ,
166166 ) ;
167167
168168 insta:: assert_json_snapshot!( diags) ;
@@ -176,10 +176,10 @@ fn deterministic_duplicate_ordering() {
176176 let diags = gather_bans (
177177 func_name ! ( ) ,
178178 KrateGather :: new ( "duplicates" ) ,
179- r# "
179+ r"
180180multiple-versions = 'deny'
181181multiple-versions-include-dev = true
182- "# ,
182+ " ,
183183 ) ;
184184
185185 insta:: assert_json_snapshot!( diags) ;
@@ -208,10 +208,10 @@ fn duplicate_graphs() {
208208 use cargo_deny:: bans;
209209
210210 let krates = KrateGather :: new ( "duplicates" ) . gather ( ) ;
211- let cfg = r# "
211+ let cfg = r"
212212multiple-versions = 'deny'
213213multiple-versions-include-dev = true
214- "#
214+ "
215215 . into ( ) ;
216216
217217 let dup_graphs = std:: sync:: Arc :: new ( parking_lot:: Mutex :: new ( Vec :: new ( ) ) ) ;
@@ -238,14 +238,14 @@ fn deny_multiple_versions_for_specific_krates() {
238238 let diags = gather_bans (
239239 func_name ! ( ) ,
240240 KrateGather :: new ( "duplicates" ) ,
241- r# "
241+ r"
242242multiple-versions = 'allow'
243243multiple-versions-include-dev = true
244244deny = [
245245 { name = 'block-buffer', deny-multiple-versions = true },
246246 { name = 'generic-array', deny-multiple-versions = true },
247247]
248- "# ,
248+ " ,
249249 ) ;
250250
251251 insta:: assert_json_snapshot!( diags) ;
@@ -261,11 +261,11 @@ fn deny_target_specific_dependencies() {
261261 no_default_features : true ,
262262 ..Default :: default ( )
263263 } ,
264- r# "
264+ r"
265265deny = [
266266 'serde'
267267]
268- "# ,
268+ " ,
269269 ) ;
270270
271271 insta:: assert_json_snapshot!( diags) ;
@@ -278,11 +278,11 @@ deny = [
278278 targets : & [ "x86_64-windows-pc-msvc" ] ,
279279 ..Default :: default ( )
280280 } ,
281- r# "
281+ r"
282282deny = [
283283 'serde'
284284]
285- "# ,
285+ " ,
286286 ) ;
287287
288288 insta:: assert_json_snapshot!( diags) ;
@@ -295,11 +295,11 @@ deny = [
295295 targets : & [ "x86_64-windows-pc-msvc" , "aarch64-linux-android" ] ,
296296 ..Default :: default ( )
297297 } ,
298- r# "
298+ r"
299299deny = [
300300 'serde'
301301]
302- "# ,
302+ " ,
303303 ) ;
304304
305305 insta:: assert_json_snapshot!( diags) ;
@@ -316,13 +316,13 @@ fn deny_duplicate_workspace_items() {
316316 targets : & [ "x86_64-unknown-linux-gnu" , "x86_64-pc-windows-msvc" ] ,
317317 ..Default :: default ( )
318318 } ,
319- r# "
319+ r"
320320multiple-versions = 'allow'
321321
322322[workspace-dependencies]
323323include-path-dependencies = true
324324unused = 'warn'
325- "# ,
325+ " ,
326326 ) ;
327327
328328 insta:: assert_json_snapshot!( diags) ;
@@ -339,7 +339,7 @@ fn unused_skips_generate_warnings() {
339339 targets : & [ "x86_64-unknown-linux-gnu" , "x86_64-pc-windows-msvc" ] ,
340340 ..Default :: default ( )
341341 } ,
342- r# "
342+ r"
343343multiple-versions = 'deny'
344344skip = [
345345 # This actually has 3 versions, skip the two lower ones
@@ -349,7 +349,7 @@ skip = [
349349 # This crate is in the graph, but there is only one version
350350 'serde_json',
351351]
352- "# ,
352+ " ,
353353 ) ;
354354
355355 insta:: assert_json_snapshot!( diags) ;
0 commit comments