Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
gluebuddy
Commits
8e7a73fc
Verified
Commit
8e7a73fc
authored
Jan 23, 2022
by
Jelle van der Waa
🚧
Browse files
chore: fix if-let clippy warnings
parent
891df014
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
8e7a73fc
...
...
@@ -20,12 +20,9 @@ use tokio::sync::Mutex;
async
fn
run
(
args
:
Args
)
->
Result
<
()
>
{
/* Early exit for completions */
match
args
.command
{
Command
::
Completions
(
completions
)
=>
{
if
let
Command
::
Completions
(
completions
)
=
args
.command
{
args
::
gen_completions
(
&
completions
)
?
;
return
Ok
(());
}
_
=>
{}
}
let
state
=
Arc
::
new
(
Mutex
::
new
(
State
::
default
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment