Commit b9cd864
committed
Fix dead_code warning on fallback SourceFile
warning: struct `SourceFile` is never constructed
--> src/fallback.rs:301:19
|
301 | pub(crate) struct SourceFile {
| ^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: methods `path` and `is_real` are never used
--> src/fallback.rs:307:12
|
305 | impl SourceFile {
| --------------- methods in this implementation
306 | /// Get the path to this source file as a string.
307 | pub fn path(&self) -> PathBuf {
| ^^^^
...
311 | pub fn is_real(&self) -> bool {
| ^^^^^^^1 parent e94f432 commit b9cd864
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| 301 | + | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
| 307 | + | |
305 | 308 | | |
306 | 309 | | |
307 | 310 | | |
| |||
313 | 316 | | |
314 | 317 | | |
315 | 318 | | |
| 319 | + | |
316 | 320 | | |
317 | 321 | | |
318 | 322 | | |
| |||
0 commit comments