Refactor: remove unnecessery code, improve functionality, you can find a better solution for logic #4
No reviewers
Labels
No labels
bug
duplicate
enhancement
fix
good first issue
help wanted
question
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xinux/relago!4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
We improved the efficiency of code by removing unnecessary libraries, boilerplate codes, etc.
@ -13,4 +12,3 @@sender.command(|out, shutdown| {shutdown.register(async move {out.send(CmdOut::Progress {better call
out.emit, if we dont care with resulthttps://docs.rs/relm4/0.10.0/relm4/struct.Sender.html#method.emit
@ezozbek36 wrote in #4 (comment):
but be careful with error cases. If you do out.send and this conroller dropped (UI closes this window) you may have not get error
let _ = action();style This style is noisy, simpleaction();style is better especially if it returns()@ -14,3 +13,3 @@shutdown.register(async move {out.send(CmdOut::Progress {let _ = out.send(CmdOut::Progress {There is no need for this.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.