Use 2018 edition for the crates

This commit is contained in:
Jordan Petridis 2019-03-30 17:48:24 +02:00
parent 32ecb05902
commit 4a7d3d5fc2
No known key found for this signature in database
GPG Key ID: E8523968931763BE
11 changed files with 15 additions and 66 deletions

View File

@ -2,6 +2,7 @@
authors = ["Jordan Petridis <jpetridis@gnome.org>"]
name = "podcasts-data"
version = "0.1.0"
edition = "2018"
[dependencies]
ammonia = "2.0.0"

View File

@ -81,7 +81,7 @@ extern crate diesel;
#[macro_use]
extern crate diesel_migrations;
// #[macro_use]
extern crate failure;
// extern crate failure;
#[macro_use]
extern crate failure_derive;
#[macro_use]
@ -89,22 +89,6 @@ extern crate lazy_static;
#[macro_use]
extern crate log;
extern crate ammonia;
extern crate chrono;
extern crate futures;
extern crate http;
extern crate hyper;
extern crate hyper_tls;
extern crate native_tls;
extern crate num_cpus;
extern crate rayon;
extern crate rfc822_sanitizer;
extern crate rss;
extern crate tokio;
extern crate url;
extern crate xdg;
extern crate xml;
pub mod database;
#[allow(missing_docs)]
pub mod dbqueries;

View File

@ -21,9 +21,9 @@
// #![allow(unused)]
use crate::dbqueries;
use crate::errors::DataError;
use crate::models::Source;
use dbqueries;
use xml::{
common::XmlVersion,
reader,

View File

@ -2,6 +2,7 @@
authors = ["Jordan Petridis <jpetridis@gnome.org>"]
name = "podcasts-downloader"
version = "0.1.0"
edition = "2018"
[dependencies]
error-chain = "0.12.0"

View File

@ -41,7 +41,6 @@
)]
// #![deny(warnings)]
extern crate failure;
#[macro_use]
extern crate failure_derive;
#[macro_use]
@ -51,11 +50,5 @@ extern crate log;
#[macro_use]
extern crate pretty_assertions;
extern crate glob;
extern crate mime_guess;
extern crate podcasts_data;
extern crate reqwest;
extern crate tempdir;
pub mod downloader;
pub mod errors;

View File

@ -2,6 +2,7 @@
authors = ["Jordan Petridis <jpetridis@gnome.com>"]
name = "podcasts-gtk"
version = "0.1.0"
edition = "2018"
[dependencies]
chrono = "0.4.6"
@ -9,8 +10,8 @@ crossbeam-channel = "0.3.8"
gdk = "0.10.0"
gdk-pixbuf = "0.6.0"
glib = "0.7.1"
gstreamer = "0.13.0"
gstreamer-player = "0.13.0"
gst = { version = "0.13.0", package = "gstreamer" }
gst-player = { version = "0.13.0", package = "gstreamer-player" }
humansize = "1.1.0"
lazy_static = "1.3.0"
log = "0.4.6"

View File

@ -309,7 +309,7 @@ impl App {
Action::RefreshEpisodesViewBGR => self.content.update_home_if_background(),
Action::ReplaceWidget(pd) => {
let shows = self.content.get_shows();
let mut pop = shows.borrow().populated();
let pop = shows.borrow().populated();
pop.borrow_mut()
.replace_widget(pd.clone())
.map_err(|err| error!("Failed to update ShowWidget: {}", err))
@ -318,13 +318,13 @@ impl App {
}
Action::ShowWidgetAnimated => {
let shows = self.content.get_shows();
let mut pop = shows.borrow().populated();
let pop = shows.borrow().populated();
pop.borrow_mut()
.switch_visible(PopulatedState::Widget, gtk::StackTransitionType::SlideLeft);
}
Action::ShowShowsAnimated => {
let shows = self.content.get_shows();
let mut pop = shows.borrow().populated();
let pop = shows.borrow().populated();
pop.borrow_mut()
.switch_visible(PopulatedState::View, gtk::StackTransitionType::SlideRight);
}

View File

@ -17,12 +17,10 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
extern crate gettextrs;
extern crate regex;
use self::gettextrs::gettext;
use self::gettextrs::ngettext;
use self::regex::Captures;
use self::regex::Regex;
use gettextrs::gettext;
use gettextrs::ngettext;
use regex::Captures;
use regex::Regex;
#[allow(dead_code)]
fn freplace(input: String, args: &[&str]) -> String {

View File

@ -43,14 +43,6 @@
)]
// #![deny(warnings)]
extern crate gdk;
extern crate gdk_pixbuf;
extern crate gio;
extern crate glib;
extern crate gstreamer as gst;
extern crate gstreamer_player as gst_player;
extern crate gtk;
#[macro_use]
extern crate failure;
// #[macro_use]
@ -64,24 +56,6 @@ extern crate log;
#[macro_use]
extern crate pretty_assertions;
extern crate chrono;
extern crate crossbeam_channel;
extern crate fragile;
extern crate gettextrs;
extern crate html2text;
extern crate humansize;
extern crate libhandy;
extern crate loggerv;
extern crate mpris_player;
extern crate open;
extern crate podcasts_data;
extern crate podcasts_downloader;
extern crate rayon;
extern crate regex;
extern crate reqwest;
extern crate serde_json;
extern crate url;
use log::Level;
use gtk::prelude::*;

View File

@ -17,9 +17,7 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
use crate::gst::prelude::*;
use crate::gst::ClockTime;
use crate::gst_player;
use gst::ClockTime;
use gtk;
use gtk::prelude::*;

View File

@ -1 +0,0 @@
edition = "2018"