Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
R
raur
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
David Bittner
raur
Commits
bd249889
Commit
bd249889
authored
4 years ago
by
Lulu
Browse files
Options
Downloads
Plain Diff
Merge branch 'use-clippy' into 'master'
Use clippy checks in CI See merge request
!19
parents
f7996316
356ad70c
No related branches found
No related tags found
1 merge request
!19
Use clippy checks in CI
Pipeline
#240764447
passed
4 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
src/blocking.rs
+1
-1
1 addition, 1 deletion
src/blocking.rs
src/handle.rs
+1
-1
1 addition, 1 deletion
src/handle.rs
with
7 additions
and
2 deletions
.gitlab-ci.yml
+
5
−
0
View file @
bd249889
...
...
@@ -16,6 +16,7 @@ image: "rust:latest"
before_script
:
-
apt-get update -yqq
-
apt-get install -yqq --no-install-recommends build-essential
-
rustup component add clippy
# Use cargo to test the project
test:cargo
:
...
...
@@ -25,6 +26,10 @@ test:cargo:
-
cargo test --all --all-features --verbose
-
cargo test --all --no-default-features --verbose
test:lint
:
script
:
-
cargo clippy --all-targets --all-features -- -D warnings
build
:
script
:
-
cargo build
This diff is collapsed.
Click to expand it.
src/blocking.rs
+
1
−
1
View file @
bd249889
...
...
@@ -233,7 +233,7 @@ mod tests {
assert_eq!
(
0
,
query
.len
());
let
query
=
handle
.search
(
"spotify"
)
.unwrap
();
assert!
(
query
.
len
()
>
0
);
assert!
(
!
query
.
is_empty
()
);
assert!
(
query
[
0
]
.url
.is_some
());
}
...
...
This diff is collapsed.
Click to expand it.
src/handle.rs
+
1
−
1
View file @
bd249889
...
...
@@ -238,7 +238,7 @@ mod tests {
assert_eq!
(
0
,
query
.len
());
let
query
=
handle
.search
(
"spotify"
)
.await
.unwrap
();
assert!
(
query
.
len
()
>
0
);
assert!
(
!
query
.
is_empty
()
);
assert!
(
query
[
0
]
.url
.is_some
());
}
...
...
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