Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Feb 4, 2025
1 parent 58130e3 commit 8387153
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/story/src/table_story.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ impl_internal_actions!(table_story, [ChangeSize, OpenDetail]);
#[derive(Clone, Debug, Default)]
struct Stock {
id: usize,
symbol: String,
name: String,
symbol: SharedString,
name: SharedString,
price: f64,
change: f64,
change_percent: f64,
Expand Down Expand Up @@ -104,8 +104,8 @@ fn random_stocks(size: usize) -> Vec<Stock> {
(0..size)
.map(|id| Stock {
id,
symbol: Faker.fake::<String>(),
name: Faker.fake::<String>(),
symbol: Faker.fake::<String>().into(),
name: Faker.fake::<String>().into(),
change: (-100.0..100.0).fake(),
change_percent: (-1.0..1.0).fake(),
volume: (0.0..1000.0).fake(),
Expand Down

0 comments on commit 8387153

Please sign in to comment.