Reduce build warnings
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user