# gpui: Fix data_table example overflow subtracting crash error \(\#32617\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4236c9ed0e36c77aaa6ae94460ccb79d908779b9

Requested commit: 4236c9ed0e36c77aaa6ae94460ccb79d908779b9

Commit: 4236c9ed0e36c77aaa6ae94460ccb79d908779b9

Tree: 95e4a30570e067ea9bbd2771f8df5fce1e129fc5

Author: Jason Lee

Committer: GitHub

## Message

````
gpui: Fix data_table example overflow subtracting crash error (#32617)

Release Notes:

- N/A

Just make a simple change to avoid crash.

```
thread 'main' panicked at library\std\src\time.rs:436:33:
overflow when subtracting duration from instant
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library\std\src\panicking.rs:697
   1: core::panicking::panic_fmt
             at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library\core\src\panicking.rs:75
   2: core::panicking::panic_display
             at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library\core\src\panicking.rs:261
   3: core::option::expect_failed
             at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library\core\src\option.rs:2024
   4: core::option::Option::expect
             at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library\core\src\option.rs:933
   5: std::time::impl$3::sub
             at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library\std\src\time.rs:436
   6: data_table::Quote::random
             at .\crates\gpui\examples\data_table.rs:54
```
````

## Parents

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

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