Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Msg::None and remove some clones #410

Merged
merged 28 commits into from
Jan 18, 2025
Merged

Conversation

hasezoey
Copy link
Contributor

@hasezoey hasezoey commented Jan 13, 2025

This PR does:

  • remove Msg::None and replace it with Option::None or Msg::ForceRedraw where necessary
  • decrease amount of string clones in downloads
  • move YoutubeSearch* variants from DLMsg to YSMsg
  • rename XYWHMsg::Hide to ToggleHidden
  • fix a panic in playback::playlist::swap_down when the playlist is empty

Draft until #407 is merged and clippy is re-run

Also related is veeso/tui-realm-stdlib#27

To be more explicit than "None".
There are a bunch of places "None" can be replaced with "ForceRedraw", but only if necessary.
…ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…Redraw"

But only when necessary.
Replaces "Msg::None" usage.
… "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…orceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…r "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
… or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…" or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
… "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…Redraw"

But only when necessary.
Replaces "Msg::None" usage.
…edraw"

But only when necessary.
Replaces "Msg::None" usage.
…::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
… "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…one" or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…turn "None" or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…"None" or "Msg::ForceRedraw"

But only when necessary.
Replaces "Msg::None" usage.
…raw"

But only when necessary.
Replaces "Msg::None" usage.
Either use "ForceRedraw" or "Option::None"
@hasezoey hasezoey marked this pull request as ready for review January 17, 2025 10:43
@tramhao tramhao merged commit e7dfbe5 into tramhao:master Jan 18, 2025
5 checks passed
@hasezoey hasezoey deleted the removeMsgNone branch January 18, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants