# gpui: Remove unneeded anonymous lifetime from \`Render::render\` \(\#27684\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e90411efa23d8c27433ddc7f6dcacc14bd0f6cf5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e90411efa23d8c27433ddc7f6dcacc14bd0f6cf5

Requested commit: e90411efa23d8c27433ddc7f6dcacc14bd0f6cf5

Commit: e90411efa23d8c27433ddc7f6dcacc14bd0f6cf5

Tree: 61f49442e4bb097532c3fcd3df69c87de30062c4

Author: Marshall Bowers

Committer: GitHub

## Message

````
gpui: Remove unneeded anonymous lifetime from `Render::render` (#27684)

This PR removes an unneeded anonymous lifetime from the `cx` parameter
to `Render::render`.

This makes it so the anonymous lifetime doesn't show up when
implementing the `Render` trait via a code action:

#### Before

```rs
struct Foo;

impl Render for Foo {
    fn render(&mut self, window: &mut Window, cx: &mut Context<'_, Self>) -> impl IntoElement {
        todo!()
    }
}
```

#### After

```rs
struct Foo;

impl Render for Foo {
    fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
        todo!()
    }
}
```

Release Notes:

- N/A
````

## Parents

- [fcadcbb510d13991b5c36aea5b5bc7af4b608517](https://git.cafe/gitcafe/zed/commit/fcadcbb510d13991b5c36aea5b5bc7af4b608517?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e90411efa23d8c27433ddc7f6dcacc14bd0f6cf5?format=markdown)
