"feat(ml_interface): remove unused import and refactor GitGrabber implementation"

This commit is contained in:
Triston Armstrong 2025-01-12 14:00:18 -05:00
parent c98dedf347
commit 1cf6d12bd6
Signed by: tristonarmstrong
GPG Key ID: A23B48AE45EB6EFE
2 changed files with 1 additions and 11 deletions

View File

@ -1,19 +1,10 @@
use core::panic; use core::panic;
use std::{ use std::{process::Command, str::from_utf8};
fs::write,
io::Write,
process::{Command, Output},
str::from_utf8,
};
// this is a comment test here // this is a comment test here
pub struct GitGrabber {} pub struct GitGrabber {}
impl GitGrabber { impl GitGrabber {
pub fn new() -> Self {
GitGrabber {}
}
pub fn get_current_branch() -> String { pub fn get_current_branch() -> String {
let branch = Command::new("git") let branch = Command::new("git")
.args(["branch", "--show-current"]) .args(["branch", "--show-current"])

View File

@ -1,4 +1,3 @@
use std::error::Error;
use reqwest::blocking::Client; use reqwest::blocking::Client;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};