Commit 2fb53c0
committed
fix(materialized_artifact): build on Windows & allow reparameterized suffix lifetime
- `.executable()` was `fn(mut self)` with the write to `self.executable`
inside `#[cfg(unix)]` — on Windows the `mut` was unused and tripped
`-D unused_mut`. Added a `#[cfg_attr(not(unix), expect(unused_mut, ...))]`.
- `.suffix(&str)` now re-parameterizes the builder's lifetime to the new
suffix's so a `Materialize<'static>` can still accept a short-lived
suffix. Lifetimes are elided to keep the signature tidy.1 parent 51245da commit 2fb53c0
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
0 commit comments