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:
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

View file

@ -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 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`
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]
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 {