Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Merge requests
!214
Chore/clippy warnings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Chore/clippy warnings
chore/clippy-warnings
into
master
Overview
0
Commits
1
Pipelines
3
Changes
2
Merged
Georgy Moshkin
requested to merge
chore/clippy-warnings
into
master
2 years ago
Overview
0
Commits
1
Pipelines
3
Changes
2
Expand
needs
!213 (merged)
Edited
2 years ago
by
Georgy Moshkin
0
0
Merge request reports
Viewing commit
7fb28ea0
Show latest version
2 files
+
7
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
7fb28ea0
chore: fix clippy warnings
· 7fb28ea0
Georgy Moshkin
authored
2 years ago
src/traft/network.rs
+
5
−
8
Options
@@ -300,14 +300,11 @@ inventory::submit!(crate::InnerTest {
// Set up on_disconnect trigger
let
on_disconnect_cond
=
Rc
::
new
(
fiber
::
Cond
::
new
());
let
on_disconnect
:
tlua
::
LuaFunction
<
_
>
=
l
.eval
(
"return box.session.on_disconnect"
)
.unwrap
();
let
()
=
on_disconnect
.call_with_args
({
let
cond
=
on_disconnect_cond
.clone
();
tlua
::
function0
(
move
||
cond
.broadcast
())
})
.unwrap
();
l
.exec_with
(
"box.session.on_disconnect(...)"
,
{
let
cond
=
on_disconnect_cond
.clone
();
tlua
::
function0
(
move
||
cond
.broadcast
())
})
.unwrap
();
// Wait for it
on_disconnect_cond
Loading