Commit 9ad93216 authored by Felix Häcker's avatar Felix Häcker

Disable CI build since we require currently a nightly Rust compiler

parent 858f55bb
use gio::prelude::*;
use glib::{Receiver, Sender};
use glib::futures::FutureExt;
use glib::{Receiver, Sender};
use gtk::prelude::*;
use libhandy::{ViewSwitcherBarExt, ViewSwitcherExt};
use url::Url;
......@@ -9,11 +9,11 @@ use std::cell::RefCell;
use std::env;
use std::rc::Rc;
use crate::api::{Station, StationRequest, Client};
use crate::api::{Client, Station, StationRequest};
use crate::audio::{PlaybackState, Player};
use crate::config;
use crate::database::Library;
use crate::database::gradio_db;
use crate::database::Library;
use crate::discover::StoreFront;
use crate::ui::{View, Window};
use crate::utils::{Order, Sorting};
......@@ -260,7 +260,7 @@ impl App {
// Get actual stations from identifiers
let client = Client::new(Url::parse("").unwrap());
let sender = self.sender.clone();
let fut = client.get_stations_by_identifiers(ids).map(move |stations|{
let fut = client.get_stations_by_identifiers(ids).map(move |stations| {
let message = format!("Imported {} stations!", stations.len());
......@@ -15,7 +15,7 @@ pub struct GradioStationID {
pub station_id: i32,
pub fn read_database(path: PathBuf) -> Vec<StationIdentifier>{
pub fn read_database(path: PathBuf) -> Vec<StationIdentifier> {
// Establish connection to database
let connection: diesel::SqliteConnection = Connection::establish(path.to_str().unwrap()).unwrap(); //TODO: don't unwrap
......@@ -26,7 +26,7 @@ pub fn read_database(path: PathBuf) -> Vec<StationIdentifier>{
// Convert GradioIdentifier to Shortwave StationIdentifier
let mut result = Vec::new();
for id in ids {
let sid = StationIdentifier{
let sid = StationIdentifier {
id: None,
station_id: id.station_id.clone(),
mod connection;
pub mod gradio_db;
mod library;
mod models;
mod queries;
mod schema;
pub mod gradio_db;
pub use library::Library;
pub use models::StationIdentifier;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment