Style and Clippy fixes.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -49,27 +49,27 @@ pub enum EffectParameter {
|
||||
String(ValueIdentifier, StringKey),
|
||||
}
|
||||
|
||||
impl Into<EffectParameter> for bool {
|
||||
fn into(self) -> EffectParameter {
|
||||
EffectParameter::Bool(Default::default(), self)
|
||||
impl From<bool> for EffectParameter {
|
||||
fn from(b: bool) -> Self {
|
||||
EffectParameter::Bool(Default::default(), b)
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<EffectParameter> for i64 {
|
||||
fn into(self) -> EffectParameter {
|
||||
EffectParameter::Int(Default::default(), self)
|
||||
impl From<i64> for EffectParameter {
|
||||
fn from(i: i64) -> Self {
|
||||
EffectParameter::Int(Default::default(), i)
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<EffectParameter> for f32 {
|
||||
fn into(self) -> EffectParameter {
|
||||
EffectParameter::Float(Default::default(), self)
|
||||
impl From<f32> for EffectParameter {
|
||||
fn from(f: f32) -> Self {
|
||||
EffectParameter::Float(Default::default(), f)
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<EffectParameter> for StringKey {
|
||||
fn into(self) -> EffectParameter {
|
||||
EffectParameter::String(Default::default(), self)
|
||||
impl From<StringKey> for EffectParameter {
|
||||
fn from(s: StringKey) -> Self {
|
||||
EffectParameter::String(Default::default(), s)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user