Reduce build warnings

This commit is contained in:
2025-12-28 01:34:46 +09:00
parent b104d6af5f
commit 0269fc2ed4
41 changed files with 77 additions and 26 deletions

View File

@ -10,6 +10,7 @@ use std::path::PathBuf;
#[derive(Debug, Clone)]
pub struct PluginErrorContext {
pub kind: PluginErrorKind,
#[allow(dead_code)]
pub plugin_name: String,
pub message: String,
pub attempted_paths: Vec<String>,
@ -24,8 +25,10 @@ pub enum PluginErrorKind {
/// dlopen() failed
LoadFailed,
/// Plugin initialization failed
#[allow(dead_code)]
InitFailed,
/// Version mismatch
#[allow(dead_code)]
VersionMismatch,
}
@ -75,6 +78,7 @@ impl PluginErrorContext {
}
/// Create error context for init failure
#[allow(dead_code)]
pub fn init_failed(plugin_name: &str, error_msg: &str) -> Self {
Self {
kind: PluginErrorKind::InitFailed,