From 1cf6d12bd677c27703c8d490abdd840264085dc3 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 12 Jan 2025 14:00:18 -0500 Subject: [PATCH] "feat(ml_interface): remove unused import and refactor GitGrabber implementation" --- src/git_grabber.rs | 11 +---------- src/ml_interface.rs | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/git_grabber.rs b/src/git_grabber.rs index 05f344a..6b1482f 100644 --- a/src/git_grabber.rs +++ b/src/git_grabber.rs @@ -1,19 +1,10 @@ use core::panic; -use std::{ - fs::write, - io::Write, - process::{Command, Output}, - str::from_utf8, -}; +use std::{process::Command, str::from_utf8}; // this is a comment test here pub struct GitGrabber {} impl GitGrabber { - pub fn new() -> Self { - GitGrabber {} - } - pub fn get_current_branch() -> String { let branch = Command::new("git") .args(["branch", "--show-current"]) diff --git a/src/ml_interface.rs b/src/ml_interface.rs index d0070e4..cd69e12 100644 --- a/src/ml_interface.rs +++ b/src/ml_interface.rs @@ -1,4 +1,3 @@ -use std::error::Error; use reqwest::blocking::Client; use serde::{Deserialize, Serialize};