Commit e5dc149
authored
Fixes two
When I build Solang, I see these two warnings:
```
warning: elided lifetime has a name
--> src/emit/mod.rs:375:18
|
369 | pub fn binary<'a>(
| -- lifetime `'a` declared here
...
375 | ) -> binary::Binary {
| ^^^^^^ this elided lifetime gets resolved as `'a`
|
= note: `#[warn(elided_named_lifetimes)]` on by default
warning: elided lifetime has a name
--> src/sema/builtin_structs.rs:243:59
|
243 | pub fn definition<'a>(&'a self, ns: &'a Namespace) -> &StructDecl {
| -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a`
```
This PR addresses both of the warnings.
Signed-off-by: Samuel Moelius <samuel.moelius@trailofbits.com>elided_named_lifetimes warnings (#1680)1 parent fc29c83 commit e5dc149
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments