|
15 | 15 | LL| | |
16 | 16 | LL| 1| let mut some_string = Some(String::from("the string content")); |
17 | 17 | LL| 1| println!( |
18 | | - LL| 1| "The string or alt: {}" |
| 18 | + LL| | "The string or alt: {}" |
19 | 19 | LL| | , |
20 | 20 | LL| 1| some_string |
21 | 21 | LL| | . |
|
45 | 45 | LL| 0| "alt string 2".to_owned() |
46 | 46 | LL| 0| }; |
47 | 47 | LL| 1| println!( |
48 | | - LL| 1| "The string or alt: {}" |
| 48 | + LL| | "The string or alt: {}" |
49 | 49 | LL| | , |
50 | 50 | LL| 1| some_string |
51 | 51 | LL| | . |
|
57 | 57 | LL| | |
58 | 58 | LL| 1| some_string = None; |
59 | 59 | LL| 1| println!( |
60 | | - LL| 1| "The string or alt: {}" |
| 60 | + LL| | "The string or alt: {}" |
61 | 61 | LL| | , |
62 | 62 | LL| 1| some_string |
63 | 63 | LL| | . |
|
87 | 87 | LL| 1| "alt string 4".to_owned() |
88 | 88 | LL| 1| }; |
89 | 89 | LL| 1| println!( |
90 | | - LL| 1| "The string or alt: {}" |
| 90 | + LL| | "The string or alt: {}" |
91 | 91 | LL| | , |
92 | 92 | LL| 1| some_string |
93 | 93 | LL| | . |
|
109 | 109 | LL| 5| format!("'{}'", val) |
110 | 110 | LL| 5| }; |
111 | 111 | LL| 1| println!( |
112 | | - LL| 1| "Repeated, quoted string: {:?}" |
| 112 | + LL| | "Repeated, quoted string: {:?}" |
113 | 113 | LL| | , |
114 | 114 | LL| 1| std::iter::repeat("repeat me") |
115 | 115 | LL| 1| .take(5) |
|
139 | 139 | LL| | |
140 | 140 | LL| 1| let short_used_covered_closure_macro = | used_arg: u8 | println!("called"); |
141 | 141 | LL| 1| let short_used_not_covered_closure_macro = | used_arg: u8 | println!("not called"); |
142 | | - ^0 ^0 |
| 142 | + ^0 |
143 | 143 | LL| 1| let _short_unused_closure_macro = | _unused_arg: u8 | println!("not called"); |
144 | | - ^0 ^0 |
| 144 | + ^0 |
145 | 145 | LL| | |
146 | 146 | LL| | |
147 | 147 | LL| | |
148 | 148 | LL| | |
149 | 149 | LL| 1| let _short_unused_closure_block = | _unused_arg: u8 | { println!("not called") }; |
150 | | - ^0^0 ^0 ^0 |
| 150 | + ^0^0 ^0 |
151 | 151 | LL| | |
152 | 152 | LL| 1| let _shortish_unused_closure = | _unused_arg: u8 | { |
153 | 153 | ^0 |
|
174 | 174 | LL| 1| let _short_unused_closure_line_break_no_block2 = |
175 | 175 | LL| | | _unused_arg: u8 | |
176 | 176 | LL| 0| println!( |
177 | | - LL| 0| "not called" |
| 177 | + LL| | "not called" |
178 | 178 | LL| | ) |
179 | 179 | LL| | ; |
180 | 180 | LL| | |
181 | 181 | LL| 1| let short_used_not_covered_closure_line_break_no_block_embedded_branch = |
182 | 182 | LL| | | _unused_arg: u8 | |
183 | 183 | LL| | println!( |
184 | | - LL| 0| "not called: {}", |
| 184 | + LL| | "not called: {}", |
185 | 185 | LL| 0| if is_true { "check" } else { "me" } |
186 | 186 | LL| | ) |
187 | 187 | LL| | ; |
|
190 | 190 | LL| | | _unused_arg: u8 | |
191 | 191 | LL| 0| { |
192 | 192 | LL| 0| println!( |
193 | | - LL| 0| "not called: {}", |
| 193 | + LL| | "not called: {}", |
194 | 194 | LL| 0| if is_true { "check" } else { "me" } |
195 | 195 | LL| | ) |
196 | 196 | LL| 0| } |
|
199 | 199 | LL| 1| let short_used_covered_closure_line_break_no_block_embedded_branch = |
200 | 200 | LL| | | _unused_arg: u8 | |
201 | 201 | LL| | println!( |
202 | | - LL| 1| "not called: {}", |
| 202 | + LL| | "not called: {}", |
203 | 203 | LL| 1| if is_true { "check" } else { "me" } |
204 | 204 | ^0 |
205 | 205 | LL| | ) |
|
209 | 209 | LL| | | _unused_arg: u8 | |
210 | 210 | LL| 1| { |
211 | 211 | LL| 1| println!( |
212 | | - LL| 1| "not called: {}", |
| 212 | + LL| | "not called: {}", |
213 | 213 | LL| 1| if is_true { "check" } else { "me" } |
214 | 214 | ^0 |
215 | 215 | LL| | ) |
|
0 commit comments