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
75d6186c
Unverified
Commit
75d6186c
authored
7 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
comply fmt & clippy
parent
c776fbbc
No related branches found
No related tags found
1 merge request
!28
Resolve "wotb : compute_distance : get nbSuccess in border"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
wotb/lib.rs
+1
-1
1 addition, 1 deletion
wotb/lib.rs
wotb/rusty.rs
+2
-2
2 additions, 2 deletions
wotb/rusty.rs
with
3 additions
and
3 deletions
wotb/lib.rs
+
1
−
1
View file @
75d6186c
...
@@ -826,7 +826,7 @@ mod tests {
...
@@ -826,7 +826,7 @@ mod tests {
reached
:
52
,
reached
:
52
,
reached_at_border
:
3
,
reached_at_border
:
3
,
outdistanced
:
false
,
outdistanced
:
false
,
})
}
,
)
);
);
}
}
}
}
This diff is collapsed.
Click to expand it.
wotb/rusty.rs
+
2
−
2
View file @
75d6186c
...
@@ -290,8 +290,8 @@ impl WebOfTrust for RustyWebOfTrust {
...
@@ -290,8 +290,8 @@ impl WebOfTrust for RustyWebOfTrust {
let
success_at_border
=
border
.iter
()
.filter
(|
n
|
sentries
.contains
(
n
))
.count
()
as
u32
;
let
success_at_border
=
border
.iter
()
.filter
(|
n
|
sentries
.contains
(
n
))
.count
()
as
u32
;
let
mut
sentries
=
sentries
.len
()
as
u32
;
let
mut
sentries
=
sentries
.len
()
as
u32
;
if
self
.is_sentry
(
node
,
sentry_requirement
as
usize
)
.unwrap
()
{
if
self
.is_sentry
(
node
,
sentry_requirement
as
usize
)
.unwrap
()
{
sentries
=
sentries
-
1
;
sentries
-
=
1
;
success
=
success
-
1
;
success
-
=
1
;
}
}
Some
(
WotDistance
{
Some
(
WotDistance
{
...
...
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