# Return impl IntoElement from RenderOnce::render · gitcafe/zed

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

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

Visibility: public

Requested revision: 68e7d992194cf8657a0e7b1277f40312c1bafbb1

Requested commit: 68e7d992194cf8657a0e7b1277f40312c1bafbb1

Commit: 68e7d992194cf8657a0e7b1277f40312c1bafbb1

Tree: a6aa4502a5146835a57d7ffaf5114e8be34be404

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Return impl IntoElement from RenderOnce::render

This makes it a bit more approachable to implement.

This required converting the state of Component to AnyElement, which
costs an allocation. I'm hoping this will be ok performance-wise now
that AnyElements use bump allocation, but I need to benchmark still.

```

## Parents

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

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