diff --git a/common/src/comp/buff.rs b/common/src/comp/buff.rs index 605c0aa5b8..d54da80d44 100644 --- a/common/src/comp/buff.rs +++ b/common/src/comp/buff.rs @@ -29,7 +29,7 @@ impl BuffKind { BuffKind::Saturation { .. } => true, BuffKind::Bleeding { .. } => false, BuffKind::Cursed { .. } => false, - BuffKind::Potion {..} => true, + BuffKind::Potion { .. } => true, } } } @@ -133,7 +133,7 @@ impl Buff { accumulated: 0.0, }], data.duration, - ), + ), BuffKind::Cursed => ( vec![BuffEffect::MaxHealthModifier { value: -100. * data.strength, diff --git a/voxygen/src/hud/buffs.rs b/voxygen/src/hud/buffs.rs index da15858f8e..ad8aeed4cc 100644 --- a/voxygen/src/hud/buffs.rs +++ b/voxygen/src/hud/buffs.rs @@ -210,9 +210,7 @@ impl<'a> Widget for BuffsBar<'a> { BuffKind::Saturation { .. } => { localized_strings.get("buff.title.saturation") }, - BuffKind::Potion { .. } => { - localized_strings.get("buff.title.potion") - }, + BuffKind::Potion { .. } => localized_strings.get("buff.title.potion"), _ => localized_strings.get("buff.title.missing"), }; let remaining_time = if current_duration.is_none() { @@ -226,9 +224,7 @@ impl<'a> Widget for BuffsBar<'a> { BuffKind::Saturation { .. } => { localized_strings.get("buff.desc.saturation") }, - BuffKind::Potion { .. } => { - localized_strings.get("buff.desc.potion") - }, + BuffKind::Potion { .. } => localized_strings.get("buff.desc.potion"), _ => localized_strings.get("buff.desc.missing"), }; let desc = format!("{}\n\n{}\n\n{}", desc_txt, remaining_time, click_to_remove); @@ -414,9 +410,7 @@ impl<'a> Widget for BuffsBar<'a> { BuffKind::Saturation { .. } => { localized_strings.get("buff.title.saturation") }, - BuffKind::Potion { .. } => { - localized_strings.get("buff.title.potion") - }, + BuffKind::Potion { .. } => localized_strings.get("buff.title.potion"), BuffKind::Bleeding { .. } => localized_strings.get("debuff.title.bleed"), _ => localized_strings.get("buff.title.missing"), }; @@ -431,9 +425,7 @@ impl<'a> Widget for BuffsBar<'a> { BuffKind::Saturation { .. } => { localized_strings.get("buff.desc.saturation") }, - BuffKind::Potion { .. } => { - localized_strings.get("buff.desc.potion") - }, + BuffKind::Potion { .. } => localized_strings.get("buff.desc.potion"), BuffKind::Bleeding { .. } => localized_strings.get("debuff.desc.bleed"), _ => localized_strings.get("buff.desc.missing"), };