fix: update trait and remove unused io imports

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-18 08:31:47 -03:00
parent 22206de5ab
commit cd63dda271
5 changed files with 1 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
use anyhow::Result; use anyhow::Result;
use std::io;
use rusqlite::Connection; use rusqlite::Connection;
use log::debug; use log::debug;
@@ -48,7 +47,7 @@ pub trait MetaPlugin {
false false
} }
fn finalize(&mut self) -> io::Result<String>; fn finalize(&mut self) -> Result<()>;
// Update the meta plugin with new data // Update the meta plugin with new data
fn update(&mut self, data: &[u8]); fn update(&mut self, data: &[u8]);

View File

@@ -1,6 +1,5 @@
use anyhow::Result; use anyhow::Result;
use sha2::{Digest, Sha256}; use sha2::{Digest, Sha256};
use std::io;
use std::time::Instant; use std::time::Instant;
use crate::meta_plugin::MetaPlugin; use crate::meta_plugin::MetaPlugin;

View File

@@ -1,6 +1,5 @@
use anyhow::Result; use anyhow::Result;
use magic::{Cookie, CookieFlags}; use magic::{Cookie, CookieFlags};
use std::io;
use rusqlite::Connection; use rusqlite::Connection;
use crate::meta_plugin::MetaPlugin; use crate::meta_plugin::MetaPlugin;

View File

@@ -1,6 +1,5 @@
use anyhow::{Context, Result, anyhow}; use anyhow::{Context, Result, anyhow};
use log::*; use log::*;
use std::io;
use std::io::Write; use std::io::Write;
use std::process::{Command, Stdio, Child}; use std::process::{Command, Stdio, Child};
use which::which; use which::which;

View File

@@ -2,7 +2,6 @@ use anyhow::Result;
use gethostname::gethostname; use gethostname::gethostname;
use local_ip_address::local_ip; use local_ip_address::local_ip;
use dns_lookup::lookup_addr; use dns_lookup::lookup_addr;
use std::io;
use std::env; use std::env;
use std::process; use std::process;
use uzers::{get_current_uid, get_current_gid, get_current_username, get_current_groupname}; use uzers::{get_current_uid, get_current_gid, get_current_username, get_current_groupname};