mirror of
https://gitlab.com/hladislav/radiobrowser-lib-rust.git
synced 2025-04-29 23:34:12 +00:00
readme: fixed example
This commit is contained in:
parent
6a96615aae
commit
3703f55535
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ use std::error::Error;
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn Error>> {
|
fn main() -> Result<(), Box<dyn Error>> {
|
||||||
let mut api = RadioBrowserAPI::new()?;
|
let mut api = RadioBrowserAPI::new()?;
|
||||||
let servers = RadioBrowserAPI::get_servers()?;
|
let servers = RadioBrowserAPI::get_default_servers()?;
|
||||||
println!("Servers: {:?}", servers);
|
println!("Servers: {:?}", servers);
|
||||||
let status = api.get_server_status()?;
|
let status = api.get_server_status()?;
|
||||||
println!("Status: {:?}", status);
|
println!("Status: {:?}", status);
|
||||||
|
|
Loading…
Reference in a new issue