ZIm/crates/gpui/examples
Jason Lee 4236c9ed0e
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
```
2025-06-12 19:52:37 +03:00
..
image chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
svg chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
animation.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
data_table.rs gpui: Fix data_table example overflow subtracting crash error (#32617) 2025-06-12 19:52:37 +03:00
drag_drop.rs gpui: Keep drag cursor style when dragging (#24797) 2025-04-10 23:54:12 +00:00
gif_viewer.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
gradient.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
hello_world.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
image_gallery.rs Use image cache to stop leaking images (#29452) 2025-04-29 19:30:16 +00:00
image_loading.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
input.rs gpui: Activate the window example along with the Quit action (#30790) 2025-05-26 10:10:35 +03:00
on_window_close_quit.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
opacity.rs Add initial element inspector for Zed development (#31315) 2025-05-23 23:08:59 +00:00
ownership_post.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
painting.rs gpui: Introduce dash array support for PathBuilder (#31678) 2025-06-06 09:54:21 -07:00
pattern.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
scrollable.rs gpui: Fix scroll area to support two-layer scrolling in different directions (#31062) 2025-06-06 10:06:09 -07:00
set_menus.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
shadow.rs Add initial element inspector for Zed development (#31315) 2025-05-23 23:08:59 +00:00
text.rs gpui: Add a standard text example (#30747) 2025-05-16 17:35:44 +02:00
text_layout.rs Revert buggy pr (#28554) 2025-04-10 18:58:36 -06:00
text_wrapper.rs Add initial element inspector for Zed development (#31315) 2025-05-23 23:08:59 +00:00
uniform_list.rs gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
window.rs gpui: Improve window.prompt to support ESC with non-English cancel text on macOS (#29538) 2025-05-30 15:26:27 +00:00
window_positioning.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
window_shadow.rs Improve cursor style behavior for some draggable elements (#31965) 2025-06-06 16:56:27 -04:00