|
1230 | 1230 | Upgrade(UpgradeArgs<<span class="lifetime">'a</span>>), |
1231 | 1231 | } |
1232 | 1232 |
|
1233 | | -<span class="kw">impl</span><<span class="lifetime">'a</span>> GlobalCommand<<span class="lifetime">'a</span>> { |
| 1233 | +<span class="kw">impl </span>GlobalCommand<<span class="lifetime">'_</span>> { |
1234 | 1234 | <span class="kw">pub fn </span>executor(<span class="self">self</span>, platform: <span class="kw-2">&</span>PlatformSpec) -> Fallible<Executor> { |
1235 | 1235 | <span class="kw">match </span><span class="self">self </span>{ |
1236 | 1236 | GlobalCommand::Install(cmd) => cmd.executor(platform), |
|
1250 | 1250 | </span>tools: Vec<<span class="kw-2">&</span><span class="lifetime">'a </span>OsStr>, |
1251 | 1251 | } |
1252 | 1252 |
|
1253 | | -<span class="kw">impl</span><<span class="lifetime">'a</span>> InstallArgs<<span class="lifetime">'a</span>> { |
| 1253 | +<span class="kw">impl </span>InstallArgs<<span class="lifetime">'_</span>> { |
1254 | 1254 | <span class="doccomment">/// Convert these global install arguments into an executor for the command |
1255 | 1255 | /// |
1256 | 1256 | /// If there are multiple packages specified to install, then they will be broken out into |
|
1285 | 1285 | tools: Vec<<span class="kw-2">&</span><span class="lifetime">'a </span>OsStr>, |
1286 | 1286 | } |
1287 | 1287 |
|
1288 | | -<span class="kw">impl</span><<span class="lifetime">'a</span>> UninstallArgs<<span class="lifetime">'a</span>> { |
| 1288 | +<span class="kw">impl </span>UninstallArgs<<span class="lifetime">'_</span>> { |
1289 | 1289 | <span class="doccomment">/// Convert the tools into an executor for the uninstall command |
1290 | 1290 | /// |
1291 | 1291 | /// Since the packages are sandboxed, each needs to be uninstalled separately |
|
1311 | 1311 | </span>tools: Vec<<span class="kw-2">&</span><span class="lifetime">'a </span>OsStr>, |
1312 | 1312 | } |
1313 | 1313 |
|
1314 | | -<span class="kw">impl</span><<span class="lifetime">'a</span>> UpgradeArgs<<span class="lifetime">'a</span>> { |
| 1314 | +<span class="kw">impl </span>UpgradeArgs<<span class="lifetime">'_</span>> { |
1315 | 1315 | <span class="doccomment">/// Convert these global upgrade arguments into an executor for the command |
1316 | 1316 | /// |
1317 | 1317 | /// If there are multiple packages specified to upgrade, then they will be broken out into |
|
1384 | 1384 | </span>tools: Vec<<span class="kw-2">&</span><span class="lifetime">'a </span>OsStr>, |
1385 | 1385 | } |
1386 | 1386 |
|
1387 | | -<span class="kw">impl</span><<span class="lifetime">'a</span>> LinkArgs<<span class="lifetime">'a</span>> { |
| 1387 | +<span class="kw">impl </span>LinkArgs<<span class="lifetime">'_</span>> { |
1388 | 1388 | <span class="kw">pub fn </span>executor(<span class="self">self</span>, platform: Platform, project_name: <span class="prelude-ty">Option</span><String>) -> Fallible<Executor> { |
1389 | 1389 | <span class="kw">if </span><span class="self">self</span>.tools.is_empty() { |
1390 | 1390 | <span class="comment">// If no tools are specified, then this is a bare link command, linking the current |
|
0 commit comments