Commit 655a268
authored
fix: avoid use of deprecated child() fn (#998)
### Description
I get a compilation warning:
```
warning: use of deprecated method `object_store::path::Path::child`: use .join() or .clone().join() instead
--> crates/cli/src/lib.rs:596:34
|
596 | ... path.child(file_name),
| ^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: `rustac` (lib) generated 1 warning
Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 15s
```
The implementation of `child()` just does `clone().join()`, and we do
need the `clone()`, or a wider refactoring.
### Checklist
Delete any checklist items that do not apply (e.g. if your change is
minor, it may not require documentation updates).
- [x] Pull request title follows [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/)
- [x] Pre-commit hooks pass (`prek run --all-files`)1 parent 0f61340 commit 655a268
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| |||
0 commit comments