commit
This commit is contained in:
parent
bf48f12c8c
commit
66c86df2a4
8 changed files with 104 additions and 107 deletions
|
@ -51,8 +51,8 @@ pub enum HandlerCommand {
|
|||
|
||||
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
|
||||
pub struct InitialHandlerMessage<KeyConfig: Clone, KnobConfig: Clone> {
|
||||
pub key_configs: im::HashMap<KeyPath, (Box<str>, KeyConfig)>,
|
||||
pub knob_configs: im::HashMap<KnobPath, (Box<str>, KnobConfig)>,
|
||||
pub key_configs: im::HashMap<KeyPath, KeyConfig>,
|
||||
pub knob_configs: im::HashMap<KnobPath, KnobConfig>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
|
||||
|
@ -64,8 +64,6 @@ pub enum HandlerInitializationResultMessage {
|
|||
|
||||
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Error)]
|
||||
pub enum HandlerInitializationError {
|
||||
#[error("The provided mode string is invalid: {message}")]
|
||||
InvalidModeString { message: Box<str> },
|
||||
#[error("The provided handler config is invalid: {message}")]
|
||||
InvalidConfig {
|
||||
supports_keys: bool,
|
||||
|
|
|
@ -243,15 +243,6 @@ impl Display for ImageFilter {
|
|||
is_first = false;
|
||||
}
|
||||
|
||||
if let Some(color) = self.destructive.color {
|
||||
if !is_first {
|
||||
f.write_str("|")?
|
||||
}
|
||||
|
||||
f.write_fmt(format_args!("color={}", color))?;
|
||||
is_first = false;
|
||||
}
|
||||
|
||||
if self.destructive.grayscale {
|
||||
if !is_first {
|
||||
f.write_str("|")?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue