Rustfmt changes.

This commit is contained in:
Jordan Petridis 2017-10-13 02:33:37 +03:00
parent ac51370088
commit b176f334c3
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
4 changed files with 20 additions and 23 deletions

View File

@ -30,8 +30,8 @@ pub mod index_feed;
pub mod feedparser;
pub mod errors;
use errors::*;
use diesel::prelude::*;
use errors::*;
use std::path::PathBuf;
embed_migrations!("migrations/");

View File

@ -1,8 +1,7 @@
use reqwest;
use rss;
use diesel::result;
use hammond_data;
use reqwest;
use rss;
use std::io;
error_chain! {

View File

@ -5,15 +5,13 @@ extern crate gtk;
extern crate hammond_data;
use diesel::prelude::*;
use gtk::prelude::*;
use gtk::Orientation;
use gtk::IconSize;
use gtk::Type;
use gtk::{CellRendererText, TreeStore, TreeView, TreeViewColumn};
use hammond_data::dbqueries;
use gtk::IconSize;
use gtk::Orientation;
use gtk::Type;
use gtk::prelude::*;
use gtk::prelude::*;
use hammond_data::dbqueries;
// TODO: setup a img downloader, caching system, and then display them.
fn create_child(name: &str) -> gtk::Box {
@ -52,12 +50,13 @@ fn create_tree_store(connection: &SqliteConnection, builder: &gtk::Builder) -> T
podcast_model.insert_with_values(
Some(&iter),
None,
&[0, 1, 2, 6, 7, 8],
&[
0, 1, 2, 6, 7, 8
],
&[
&ep.id(), &ep.title().unwrap(), &ep.description().unwrap_or_default(),
&ep.uri(), &ep.local_uri().unwrap_or_default(),
&ep.id(),
&ep.title().unwrap(),
&ep.description().unwrap_or_default(),
&ep.uri(),
&ep.local_uri().unwrap_or_default(),
&ep.published_date().unwrap_or_default(),
],
);

View File

@ -1,10 +1,11 @@
verbose = false
disable_all_formatting = false
skip_children = false
skip_children = false
max_width = 100
comment_width = 100
wrap_comments = true
error_on_line_overflow = true
error_on_line_overflow_comments = true
wrap_comments = true
tab_spaces = 4
fn_call_width = 60
newline_style = "Unix"
@ -16,12 +17,10 @@ reorder_extern_crates_in_group = true
reorder_imports = false
hard_tabs = false
spaces_within_parens = false
use_try_shorthand = false
write_mode = "Overwrite"
merge_derives = true
array_horizontal_layout_threshold = 5
condense_wildcard_suffixes = true
# rustfmt 0.2.7 panics with format_string = true atm
# format_strings = true
chain_one_line_max = 60
chain_split_single_child = false
multiline_closure_forces_block = true
attributes_on_same_line_as_field = true
attributes_on_same_line_as_variant = true