~/selfhut

e22778fe7e29f6cba8788b6e07c3f53ed6be1055 — Arthur Melton f2f2d97d 2 years ago
fix code
3 files changed, 3 insertions(+), 3 deletions(-)

M src/git/blame.rs
M src/git/file.rs
M src/repository/blame.rs
M src/git/blame.rs => src/git/blame.rs +1 -1
@@ 1,7 1,7 @@

use crate::config::CONFIG;
use crate::git::commits::{get_commits, Commits};
use serde_derive::Serialize;
use std::ops::Range;

use std::path::Path;

pub fn blame<'a>(repo: String, branch: String, path: String) -> Option<Vec<Blame>> {

M src/git/file.rs => src/git/file.rs +1 -1
@@ 2,7 2,7 @@ use crate::config::CONFIG;

use git2::ObjectType;
use humansize::{format_size, DECIMAL};
use serde_derive::Serialize;
use std::path::Component;

use std::path::PathBuf;

pub fn files(repo: String, branch: String, path: String) -> Option<Vec<File>> {

M src/repository/blame.rs => src/repository/blame.rs +1 -1
@@ 2,7 2,7 @@ use crate::config::CONFIG;

use crate::git::blame::blame;
use crate::git::commits::get_commits;
use crate::git::file::file;
use crate::git::file::files;

use crate::utils::repo_config::repo_config;
use crate::PathBufWithDotfiles;
use rocket_dyn_templates::{context, Template};