Repositories

grarr

(mirrored on github)

Wim Looman <wim@nemo157.com>
8acbcd Fix warnings
Wim Looman committed at 2017-05-15 20:46:03

Modified Cargo.lock

@@ -22,7 +22,6 @@ dependencies = [
"rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)",
"toml 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"typemap 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",

Modified Cargo.toml

@@ -22,7 +22,6 @@ rust-crypto = "0.2"
rustc-serialize = "0.3"
serde = "1.0.0"
serde_derive = "1.0.0"
time = "0.1"
toml = "0.4"
typemap = "0.3"
unicase = "1.4"

Modified src/config.rs

@@ -1,5 +1,4 @@
use std::{ env, ffi, io, fmt };
use std::borrow::ToOwned;
use std::{ env, ffi, io };
use std::fs::File;
use std::io::Read;
use std::path::{ Path, PathBuf };

Modified src/handler/commits.rs

@@ -7,6 +7,7 @@ use commit_tree::CommitTree;
pub struct Commits;
impl Handler for Commits {
#[allow(deprecated)]
fn handle(&self, req: &mut Request) -> IronResult<Response> {
let context = itry!(req.extensions.get::<RepositoryContext>().ok_or(Error::MissingExtension), status::InternalServerError);
let start_commit = req.url.clone().into_generic_url()

Modified src/handler/settings.rs

@@ -1,6 +1,5 @@
use super::base::*;
use settings;
use iron::Plugin;
// use params::{ Map, Params, Value };
#[derive(Clone)]

Modified src/main.rs

@@ -23,14 +23,12 @@ extern crate reqwest;
#[macro_use]
extern crate mime;
extern crate lru_time_cache;
extern crate time;
extern crate pulldown_cmark;
extern crate crypto;
extern crate unicase;
extern crate walkdir;
// extern crate params;
extern crate toml;
extern crate serde;
#[macro_use]
extern crate serde_derive;
#[macro_use]

Modified src/render/commit.rs

@@ -1,6 +1,5 @@
use std::fmt;
use git2;
use maud::{ Render, PreEscaped, Markup };
use maud::PreEscaped;
use super::utils::Markdown;
use commit_tree;
use chrono::naive::datetime::NaiveDateTime;

Modified src/render/compare.rs

@@ -1,4 +1,3 @@
use std::fmt;
use maud::{ Render, Markup };
use git2;
use repository_context::RepositoryContext;
@@ -33,7 +32,3 @@ impl<'r> Render for Compare<'r> {
})
}
}
// impl<'a> super::repository_wrapper::RepositoryTab for &'a Compare<'a> {
// fn tab() -> Option<super::repository_wrapper::Tab> { None }
// }

Modified src/render/fa.rs

@@ -1,4 +1,3 @@
use std::fmt;
use maud::{ Render, Markup };
macro_rules! fa {

Modified src/render/mod.rs

@@ -1,3 +1,5 @@
#![allow(non_snake_case)]
#[macro_use]
mod macros;

Modified src/render/repository_wrapper.rs

@@ -1,4 +1,3 @@
use std::fmt;
use maud::{ Render, Markup };
use { RepositoryContext };

Modified src/render/tree.rs

@@ -1,6 +1,5 @@
use std::str;
use std::cmp::{ Ord, PartialOrd, Ordering };
use std::fmt;
use super::fa::{ FA, FAM };
use git2::{ self, ObjectType };
use tree_entry::TreeEntryContext;

Modified src/render/utils.rs

@@ -1,5 +1,5 @@
use ammonia;
use maud::{ PreEscaped, Render };
use maud::Render;
use pulldown_cmark::{ Parser, html };
pub fn MaybeLink(href: &str, text: &str) -> ::maud::Markup {

Modified src/render/wrapper.rs

@@ -1,4 +1,3 @@
use std::fmt;
use maud::{ Render, Markup };
use super::Style;
use super::fa::FA;