mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: refactor into fewer crates
This commit is contained in:
parent
c367a0444e
commit
77703d83a5
105 changed files with 64 additions and 131 deletions
|
|
@ -1,19 +0,0 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use crate::{editor::Editor, prelude::*};
|
||||
|
||||
pub(crate) struct PluginCache {
|
||||
pub info: Info,
|
||||
pub params: Arc<dyn PluginParameters>,
|
||||
pub editor: Option<Box<dyn Editor>>,
|
||||
}
|
||||
|
||||
impl PluginCache {
|
||||
pub fn new(info: &Info, params: Arc<dyn PluginParameters>, editor: Option<Box<dyn Editor>>) -> Self {
|
||||
Self {
|
||||
info: info.clone(),
|
||||
params,
|
||||
editor,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue