Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Commits
198f1543
Commit
198f1543
authored
6 years ago
by
Jonas SPRENGER
Browse files
Options
Downloads
Patches
Plain Diff
[feat] tui: replace panic! by fatal_error!
parent
ab263374
No related branches found
No related tags found
1 merge request
!141
Jonas/127 replace all panics by fatal error
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Cargo.lock
+1
-0
1 addition, 0 deletions
Cargo.lock
lib/modules/tui/Cargo.toml
+1
-0
1 addition, 0 deletions
lib/modules/tui/Cargo.toml
lib/modules/tui/lib.rs
+2
-1
2 additions, 1 deletion
lib/modules/tui/lib.rs
with
4 additions
and
1 deletion
Cargo.lock
+
1
−
0
View file @
198f1543
...
...
@@ -485,6 +485,7 @@ dependencies = [
"dubp-documents 0.12.0",
"duniter-network 0.1.0-a0.1",
"dup-crypto 0.6.0",
"durs-common-tools 0.1.0",
"durs-conf 0.1.0-a0.1",
"durs-message 0.1.0-a0.1",
"durs-module 0.1.0-a0.1",
...
...
This diff is collapsed.
Click to expand it.
lib/modules/tui/Cargo.toml
+
1
−
0
View file @
198f1543
...
...
@@ -13,6 +13,7 @@ path = "lib.rs"
durs-conf
=
{
path
=
"../../core/conf"
}
dup-crypto
=
{
path
=
"../../tools/crypto"
}
dubp-documents
=
{
path
=
"../../tools/documents"
}
durs-common-tools
=
{
path
=
"../../tools/common-tools"
}
durs-message
=
{
path
=
"../../core/message"
}
durs-module
=
{
path
=
"../../core/module"
}
duniter-network
=
{
path
=
"../../core/network"
}
...
...
This diff is collapsed.
Click to expand it.
lib/modules/tui/lib.rs
+
2
−
1
View file @
198f1543
...
...
@@ -36,6 +36,7 @@ extern crate serde_derive;
extern
crate
structopt
;
use
duniter_network
::
events
::
NetworkEvent
;
use
durs_common_tools
::
fatal_error
;
use
durs_conf
::
DuRsConf
;
use
durs_message
::
events
::
*
;
use
durs_message
::
*
;
...
...
@@ -637,7 +638,7 @@ impl DursModule<DuRsConf, DursMsg> for TuiModule {
},
Err
(
e
)
=>
match
e
{
mpsc
::
RecvTimeoutError
::
Disconnected
=>
{
panic
!
(
"Disconnected tui module !"
);
fatal_error
!
(
"Disconnected tui module !"
);
}
mpsc
::
RecvTimeoutError
::
Timeout
=>
{}
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment