Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
big-brain
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
Louis
big-brain
Commits
52fe8829
Unverified
Commit
52fe8829
authored
3 years ago
by
Kat Marchán
Browse files
Options
Downloads
Patches
Plain Diff
misc: appease clippy and fmt
parent
d7d17772
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib.rs
+4
-2
4 additions, 2 deletions
src/lib.rs
src/scorers.rs
+2
-0
2 additions, 0 deletions
src/scorers.rs
with
6 additions
and
2 deletions
src/lib.rs
+
4
−
2
View file @
52fe8829
...
@@ -163,9 +163,11 @@ pub mod prelude {
...
@@ -163,9 +163,11 @@ pub mod prelude {
use
super
::
*
;
use
super
::
*
;
pub
use
super
::
BigBrainPlugin
;
pub
use
super
::
BigBrainPlugin
;
pub
use
actions
::{
ActionBuilder
,
ActionState
,
Steps
,
Concurrently
};
pub
use
actions
::{
ActionBuilder
,
ActionState
,
Concurrently
,
Steps
};
pub
use
pickers
::{
FirstToScore
,
Picker
};
pub
use
pickers
::{
FirstToScore
,
Picker
};
pub
use
scorers
::{
AllOrNothing
,
FixedScore
,
Score
,
ScorerBuilder
,
SumOfScorers
,
WinningScorer
};
pub
use
scorers
::{
AllOrNothing
,
FixedScore
,
Score
,
ScorerBuilder
,
SumOfScorers
,
WinningScorer
,
};
pub
use
thinker
::{
Actor
,
Thinker
,
ThinkerBuilder
};
pub
use
thinker
::{
Actor
,
Thinker
,
ThinkerBuilder
};
}
}
...
...
This diff is collapsed.
Click to expand it.
src/scorers.rs
+
2
−
0
View file @
52fe8829
...
@@ -255,6 +255,7 @@ impl SumOfScorersBuilder {
...
@@ -255,6 +255,7 @@ impl SumOfScorersBuilder {
}
}
impl
ScorerBuilder
for
SumOfScorersBuilder
{
impl
ScorerBuilder
for
SumOfScorersBuilder
{
#[allow(clippy::needless_collect)]
fn
build
(
&
self
,
cmd
:
&
mut
Commands
,
scorer
:
Entity
,
actor
:
Entity
)
{
fn
build
(
&
self
,
cmd
:
&
mut
Commands
,
scorer
:
Entity
,
actor
:
Entity
)
{
let
scorers
:
Vec
<
_
>
=
self
let
scorers
:
Vec
<
_
>
=
self
.scorers
.scorers
...
@@ -345,6 +346,7 @@ impl WinningScorerBuilder {
...
@@ -345,6 +346,7 @@ impl WinningScorerBuilder {
}
}
impl
ScorerBuilder
for
WinningScorerBuilder
{
impl
ScorerBuilder
for
WinningScorerBuilder
{
#[allow(clippy::needless_collect)]
fn
build
(
&
self
,
cmd
:
&
mut
Commands
,
scorer
:
Entity
,
actor
:
Entity
)
{
fn
build
(
&
self
,
cmd
:
&
mut
Commands
,
scorer
:
Entity
,
actor
:
Entity
)
{
let
scorers
:
Vec
<
_
>
=
self
let
scorers
:
Vec
<
_
>
=
self
.scorers
.scorers
...
...
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