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
9cf07a03
Commit
9cf07a03
authored
3 years ago
by
Lulu
Browse files
Options
Downloads
Plain Diff
Merge branch 'fixes' into 'master'
Fixes See merge request
!24
parents
812b6ba6
d719695d
No related branches found
No related tags found
1 merge request
!24
Fixes
Pipeline
#381673350
passed
3 years ago
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/blocking.rs
+0
-1
0 additions, 1 deletion
src/blocking.rs
src/handle.rs
+0
-1
0 additions, 1 deletion
src/handle.rs
src/lib.rs
+1
-1
1 addition, 1 deletion
src/lib.rs
src/traits.rs
+2
-2
2 additions, 2 deletions
src/traits.rs
with
3 additions
and
5 deletions
src/blocking.rs
+
0
−
1
View file @
9cf07a03
...
...
@@ -251,7 +251,6 @@ mod handle {
let
query
=
handle
.search
(
"spotify"
)
.unwrap
();
assert!
(
!
query
.is_empty
());
assert!
(
query
[
0
]
.url
.is_some
());
}
#[test]
...
...
This diff is collapsed.
Click to expand it.
src/handle.rs
+
0
−
1
View file @
9cf07a03
...
...
@@ -137,7 +137,6 @@ mod tests {
let
query
=
handle
.search
(
"spotify"
)
.await
.unwrap
();
assert!
(
!
query
.is_empty
());
assert!
(
query
[
0
]
.url
.is_some
());
}
#[tokio::test]
...
...
This diff is collapsed.
Click to expand it.
src/lib.rs
+
1
−
1
View file @
9cf07a03
...
...
@@ -29,7 +29,7 @@
//! }
//!
//! // Use `info` to get info about a list of packages. Not-found packages are silently ignored.
//! let pkgs = raur.info(&["spotify", "discord-
canary
"]).await?;
//! let pkgs = raur.info(&["spotify", "discord-
ptb
"]).await?;
//! assert_eq!(pkgs.len(), 2);
//!
//! for pkg in pkgs {
...
...
This diff is collapsed.
Click to expand it.
src/traits.rs
+
2
−
2
View file @
9cf07a03
...
...
@@ -3,7 +3,7 @@ use async_trait::async_trait;
/// The main trait for RPC functionality.
///
/// This trait is implemented by [`Handle`], which is what you should use at run-time.
/// This trait is implemented by [`Handle`]
(crate::Handle)
, which is what you should use at run-time.
/// You can also use the mock implementation of this trait in e.g. tests.
///
/// The trait itself is implemented using [`async-trait`].
...
...
@@ -14,7 +14,7 @@ pub trait Raur {
/// Performs an AUR info request.
///
/// You probably want to use [`info`] instead.
/// You probably want to use [`info`]
(Self::info)
instead.
///
/// This function sends an info request to the AUR RPC. This kind of request takes a list
/// of package names and returns a list of AUR [`Package`](struct.Package.html)s who's name exactly matches
...
...
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