Commit 19e0b7e5 authored by Jordan Petridis's avatar Jordan Petridis 🌱

Further preparations for Rusto 2018 edition

parent fd4128c3
......@@ -467,8 +467,8 @@ pub fn update_none_to_played_now(parent: &Show) -> Result<usize, DataError> {
mod tests {
use super::*;
use crate::database::*;
use failure::Error;
use crate::pipeline;
use failure::Error;
#[test]
fn test_update_none_to_played_now() -> Result<(), Error> {
......
......@@ -19,6 +19,7 @@
#![recursion_limit = "1024"]
#![allow(unknown_lints)]
#![feature(rust_2018_preview)]
#![cfg_attr(
all(test, feature = "clippy"),
allow(option_unwrap_used, result_unwrap_used)
......@@ -43,7 +44,7 @@
)]
// Enable lint group collections
#![warn(nonstandard_style, bad_style, unused)]
#![allow(edition_2018, rust_2018_idioms)]
#![warn(edition_2018, rust_2018_idioms)]
// standalone lints
#![warn(
const_err,
......
......@@ -332,9 +332,9 @@ impl NewEpisodeMinimal {
mod tests {
use crate::database::truncate_db;
use crate::dbqueries;
use failure::Error;
use crate::models::new_episode::{NewEpisodeMinimal, NewEpisodeMinimalBuilder};
use crate::models::*;
use failure::Error;
use rss::Channel;
......
......@@ -89,8 +89,8 @@ mod tests {
use super::*;
use crate::database::truncate_db;
use crate::dbqueries;
use failure::Error;
use crate::Source;
use failure::Error;
// (path, url) tuples.
const URLS: &[&str] = &[
......
......@@ -19,6 +19,7 @@
#![recursion_limit = "1024"]
#![allow(unknown_lints)]
#![feature(rust_2018_preview)]
#![cfg_attr(feature = "cargo-clippy", allow(blacklisted_name, option_map_unit_fn))]
// Enable lint group collections
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
......
......@@ -27,6 +27,7 @@
)
)]
#![allow(unknown_lints)]
#![feature(rust_2018_preview)]
// Enable lint group collections
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
// standalone lints
......
......@@ -17,8 +17,8 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
use gtk::{self, prelude::*, Adjustment, Orientation, PolicyType};
use crate::utils::smooth_scroll_to;
use gtk::{self, prelude::*, Adjustment, Orientation, PolicyType};
#[derive(Debug, Clone)]
pub(crate) struct BaseView {
......
......@@ -4,3 +4,4 @@ newline_style = "Unix"
format_strings = true
normalize_comments = true
use_field_init_shorthand = true
edition = "2018"
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