Skip to content

Commit

Permalink
Fixes two elided_named_lifetimes warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Moelius <samuel.moelius@trailofbits.com>
  • Loading branch information
smoelius committed Dec 14, 2024
1 parent 2536c08 commit 1e5e84c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/emit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl ast::Contract {
context: &'a inkwell::context::Context,
opt: &'a Options,
contract_no: usize,
) -> binary::Binary {
) -> binary::Binary<'a> {
binary::Binary::build(context, self, ns, opt, contract_no)
}

Expand Down
2 changes: 1 addition & 1 deletion src/sema/builtin_structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub static BUILTIN_STRUCTS: Lazy<[BuiltinStructDeclaration; 3]> = Lazy::new(|| {
});

impl StructType {
pub fn definition<'a>(&'a self, ns: &'a Namespace) -> &StructDecl {
pub fn definition<'a>(&'a self, ns: &'a Namespace) -> &'a StructDecl {
match self {
StructType::UserDefined(struct_no) => &ns.structs[*struct_no],
StructType::AccountInfo => &BUILTIN_STRUCTS[0].struct_decl,
Expand Down

0 comments on commit 1e5e84c

Please sign in to comment.