mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Update MSRV to 1.61 and fix test
This commit is contained in:
parent
6b11fb5cee
commit
9e06b11609
3 changed files with 6 additions and 6 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -55,7 +55,7 @@ jobs:
|
|||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
toolchain:
|
||||
- "1.60" # MSRV (Minimum supported rust version)
|
||||
- "1.61" # MSRV (Minimum supported rust version)
|
||||
- stable
|
||||
experimental: [false]
|
||||
# Ignore failures in beta
|
||||
|
@ -113,7 +113,7 @@ jobs:
|
|||
matrix:
|
||||
os: [windows-latest]
|
||||
toolchain:
|
||||
- "1.60" # MSRV (Minimum supported rust version)
|
||||
- "1.61" # MSRV (Minimum supported rust version)
|
||||
- stable
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
@ -160,7 +160,7 @@ jobs:
|
|||
os: [ubuntu-latest]
|
||||
target: [armv7-unknown-linux-gnueabihf]
|
||||
toolchain:
|
||||
- "1.60" # MSRV (Minimum supported rust version)
|
||||
- "1.61" # MSRV (Minimum supported rust version)
|
||||
- stable
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
|
@ -7,7 +7,7 @@ In order to compile librespot, you will first need to set up a suitable Rust bui
|
|||
### Install Rust
|
||||
The easiest, and recommended way to get Rust is to use [rustup](https://rustup.rs). Once that’s installed, Rust's standard tools should be set up and ready to use.
|
||||
|
||||
*Note: The current minimum supported Rust version at the time of writing is 1.60.*
|
||||
*Note: The current minimum supported Rust version at the time of writing is 1.61.*
|
||||
|
||||
#### Additional Rust tools - `rustfmt`
|
||||
To ensure a consistent codebase, we utilise [`rustfmt`](https://github.com/rust-lang/rustfmt) and [`clippy`](https://github.com/rust-lang/rust-clippy), which are installed by default with `rustup` these days, else they can be installed manually with:
|
||||
|
|
|
@ -7,8 +7,8 @@ use librespot_core::{authentication::Credentials, config::SessionConfig, session
|
|||
#[tokio::test]
|
||||
async fn test_connection() {
|
||||
timeout(Duration::from_secs(30), async {
|
||||
let result = Session::new(SessionConfig::default(), None, false)
|
||||
.connect(Credentials::with_password("test", "test"))
|
||||
let result = Session::new(SessionConfig::default(), None)
|
||||
.connect(Credentials::with_password("test", "test"), false)
|
||||
.await;
|
||||
|
||||
match result {
|
||||
|
|
Loading…
Reference in a new issue