# gpui: Pass Style by value to request_layout \(\#11597\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bd6d385817893c2ee8d0063a629a61c3cbebdfae

Requested commit: bd6d385817893c2ee8d0063a629a61c3cbebdfae

Commit: bd6d385817893c2ee8d0063a629a61c3cbebdfae

Tree: 5fd8803ad2c95313f333a8992f998d5916c8b5eb

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
gpui: Pass Style by value to request_layout (#11597)

A minor thing I've spotted and decided to fix on the spot.
It was being cloned twice within the body of that function (one of which
was redundant even without this PR); now in most cases we go down from 2
clones to 0.
Release Notes:

- N/A
```

## Parents

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

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