Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Nov 17, 2021
1 parent c0c05a5 commit 79ea87a
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 60 additions & 8 deletions api/src/schema/generated/realearn.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@
}
]
},
"AnyOnParameter": {
"type": "string",
"enum": [
"TrackSolo",
"TrackMute",
"TrackArm",
"TrackSelection"
]
},
"AutomationMode": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -823,8 +832,8 @@
"feedback_enabled": {
"type": "boolean"
},
"key": {
"description": "An optional key that you can assign to this group in order to refer to it from somewhere else.\n\nThis key should be unique within this list of groups.",
"id": {
"description": "An optional ID that you can assign to this group in order to refer to it from somewhere else.\n\nThis ID should be unique within all groups in the same compartment.",
"type": "string"
},
"name": {
Expand Down Expand Up @@ -953,8 +962,8 @@
"group": {
"type": "string"
},
"key": {
"description": "An optional key that you can assign to this mapping in order to refer to it from somewhere else.\n\nThis key should be unique within this list of mappings.",
"id": {
"description": "An optional ID that you can assign to this mapping in order to refer to it from somewhere else.\n\nThis ID should be unique within all mappings in the compartment.",
"type": "string"
},
"name": {
Expand Down Expand Up @@ -1146,15 +1155,15 @@
"index"
],
"properties": {
"id": {
"description": "An optional ID that you can assign to this parameter in order to refer to it from somewhere else.\n\nThis ID should be unique within all parameters in the same compartment.",
"type": "string"
},
"index": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"key": {
"description": "An optional key that you can assign to this parameter in order to refer to it from somewhere else.\n\nThis key should be unique within this list of parameters.",
"type": "string"
},
"name": {
"type": "string"
}
Expand Down Expand Up @@ -1944,6 +1953,28 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"kind",
"parameter"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"AnyOn"
]
},
"parameter": {
"$ref": "#/definitions/AnyOnParameter"
},
"unit": {
"$ref": "#/definitions/TargetUnit"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -2343,6 +2374,27 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"TrackTool"
]
},
"track": {
"$ref": "#/definitions/TrackDescriptor"
},
"unit": {
"$ref": "#/definitions/TargetUnit"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand Down
2 changes: 1 addition & 1 deletion main/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "realearn"
version = "2.11.0-pre.13"
version = "2.11.0-pre.14"
authors = ["Benjamin Klum <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down
8 changes: 4 additions & 4 deletions main/src/domain/unresolved_reaper_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,27 +162,27 @@ impl UnresolvedReaperTarget {
return Descriptors {
track: Some(&d.fx_descriptor.track_descriptor),
fx: Some(&d.fx_descriptor),
fx_param: Some(&d),
fx_param: Some(d),
..Default::default()
};
}
if let Some(d) = self.fx_descriptor() {
return Descriptors {
track: Some(&d.track_descriptor),
fx: Some(&d),
fx: Some(d),
..Default::default()
};
}
if let Some(d) = self.route_descriptor() {
return Descriptors {
track: Some(&d.track_descriptor),
route: Some(&d),
route: Some(d),
..Default::default()
};
}
if let Some(d) = self.track_descriptor() {
return Descriptors {
track: Some(&d),
track: Some(d),
..Default::default()
};
}
Expand Down
4 changes: 2 additions & 2 deletions main/src/infrastructure/ui/mapping_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5165,9 +5165,9 @@ impl<'a> ImmutableMappingPanel<'a> {
let text = if self.mode.feedback_color.get_ref().is_some()
|| self.mode.feedback_background_color.get_ref().is_some()
{
format!("...*")
"...*"
} else {
"...".to_string()
"..."
};
self.view
.require_control(root::IDC_MODE_FEEDBACK_TYPE_BUTTON)
Expand Down

0 comments on commit 79ea87a

Please sign in to comment.