You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before:
```
let timer = print::sub_start_timer("Installing");
// ...
let _ = timer.done();
```
After:
```
let timer = print::sub_start_timer("Installing");
// ...
timer.done();
```
This change removes the "must use" attribute from the return value of the stateful interface. The downside is that anyone using the stateful interface can call `.done()` here without doing anything else with the value. But that would also mean that nothing else in their code uses the value, so it's likely they didn't need it anyway.
I'm now advocating for the global "print" interface over the stateful interface.
Close#37
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
## Unreleased
4
4
5
+
- Change: Result of `global::sub_start_timer(...).done()` is no longer "must use". This means it no longer needs `let _ =` for clippy. (https://github.com/heroku-buildpacks/bullet_stream/pull/38)
6
+
5
7
## v0.8.0 - 2024/04/24
6
8
7
9
- Add: explicit `print::buildpack` and `print::header` functions that are focused on intent rather than implementation detail (https://github.com/heroku-buildpacks/bullet_stream/pull/34)
0 commit comments