Skip to content

Commit cec807d

Browse files
committed
remove superfluous lifetimes
1 parent 2ceff49 commit cec807d

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

crates/ty_python_semantic/src/types/function.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,7 @@ impl<'db> FunctionLiteral<'db> {
623623
/// calling query is not in the same file as this function is defined in, then this will create
624624
/// a cross-module dependency directly on the full AST which will lead to cache
625625
/// over-invalidation.
626-
fn signature<'a>(self, db: &'db dyn Db) -> CallableSignature<'db>
627-
where
628-
'db: 'a,
629-
{
626+
fn signature(self, db: &'db dyn Db) -> CallableSignature<'db> {
630627
// We only include an implementation (i.e. a definition not decorated with `@overload`) if
631628
// it's the only definition.
632629
let inherited_generic_context = self.inherited_generic_context(db);
@@ -654,10 +651,7 @@ impl<'db> FunctionLiteral<'db> {
654651
/// calling query is not in the same file as this function is defined in, then this will create
655652
/// a cross-module dependency directly on the full AST which will lead to cache
656653
/// over-invalidation.
657-
fn last_definition_signature<'a>(self, db: &'db dyn Db) -> Signature<'db>
658-
where
659-
'db: 'a,
660-
{
654+
fn last_definition_signature(self, db: &'db dyn Db) -> Signature<'db> {
661655
let inherited_generic_context = self.inherited_generic_context(db);
662656
self.last_definition(db)
663657
.signature(db, inherited_generic_context)

0 commit comments

Comments
 (0)