# gpui: Make length helpers into const functions \(\#44259\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 98608842175f02f503581737f9eb69eea01b56df

Requested commit: 98608842175f02f503581737f9eb69eea01b56df

Commit: 98608842175f02f503581737f9eb69eea01b56df

Tree: 28c1cb7a3538cdcda9f2d8be1075833c7891ace2

Author: Serophots

Committer: GitHub

## Message

```
gpui: Make length helpers into const functions (#44259)

Make gpui's `rems()`, `phi()`, `auto()` length related helpers into
const functions.

I can't see why these functions aren't already const except that it
must've been overlooked when they were written?

In my project I had need for rems() to be const, and I thought I'd do
phi() and auto() whilst I was in the neighbourhood

Release Notes:

- N/A
```

## Parents

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

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