Update MSRV to 1.61 and fix test

This commit is contained in:
Roderick van Domburg 2022-07-28 19:32:11 +02:00
parent 6b11fb5cee
commit 9e06b11609
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4
3 changed files with 6 additions and 6 deletions

View file

@ -55,7 +55,7 @@ jobs:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
toolchain: toolchain:
- "1.60" # MSRV (Minimum supported rust version) - "1.61" # MSRV (Minimum supported rust version)
- stable - stable
experimental: [false] experimental: [false]
# Ignore failures in beta # Ignore failures in beta
@ -113,7 +113,7 @@ jobs:
matrix: matrix:
os: [windows-latest] os: [windows-latest]
toolchain: toolchain:
- "1.60" # MSRV (Minimum supported rust version) - "1.61" # MSRV (Minimum supported rust version)
- stable - stable
steps: steps:
- name: Checkout code - name: Checkout code
@ -160,7 +160,7 @@ jobs:
os: [ubuntu-latest] os: [ubuntu-latest]
target: [armv7-unknown-linux-gnueabihf] target: [armv7-unknown-linux-gnueabihf]
toolchain: toolchain:
- "1.60" # MSRV (Minimum supported rust version) - "1.61" # MSRV (Minimum supported rust version)
- stable - stable
steps: steps:
- name: Checkout code - name: Checkout code

View file

@ -7,7 +7,7 @@ In order to compile librespot, you will first need to set up a suitable Rust bui
### Install Rust ### Install Rust
The easiest, and recommended way to get Rust is to use [rustup](https://rustup.rs). Once thats installed, Rust's standard tools should be set up and ready to use. The easiest, and recommended way to get Rust is to use [rustup](https://rustup.rs). Once thats 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` #### 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: 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:

View file

@ -7,8 +7,8 @@ use librespot_core::{authentication::Credentials, config::SessionConfig, session
#[tokio::test] #[tokio::test]
async fn test_connection() { async fn test_connection() {
timeout(Duration::from_secs(30), async { timeout(Duration::from_secs(30), async {
let result = Session::new(SessionConfig::default(), None, false) let result = Session::new(SessionConfig::default(), None)
.connect(Credentials::with_password("test", "test")) .connect(Credentials::with_password("test", "test"), false)
.await; .await;
match result { match result {