mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-24 10:27:00 -06:00
chore: drop redundant 'static lifetimes in consts (Sonar S8863)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
70227e30fc
commit
a4ced354af
@@ -355,7 +355,7 @@ impl ImageFilters {
|
||||
}
|
||||
|
||||
/// The built-in adjustment presets: `(id, label, adjustments)`. "Reset" is the identity.
|
||||
pub const PRESETS: [(&'static str, &'static str, ImageFilters); 7] = [
|
||||
pub const PRESETS: [(&str, &str, ImageFilters); 7] = [
|
||||
("vivid", "Vivid", ImageFilters { contrast: 0.2, saturation: 0.45, highlights: -0.1, shadows: 0.1, ..ImageFilters::NONE }),
|
||||
("muted", "Muted", ImageFilters { contrast: -0.15, saturation: -0.45, ..ImageFilters::NONE }),
|
||||
("warm", "Warm", ImageFilters { temperature: 0.5, tint: 0.1, saturation: 0.1, ..ImageFilters::NONE }),
|
||||
|
||||
@@ -795,7 +795,7 @@ fn yes() -> bool {
|
||||
|
||||
impl Effect {
|
||||
/// Effect types in the order the Design panel lists them: (label, type name).
|
||||
pub const TYPES: [(&'static str, &'static str); 7] = [
|
||||
pub const TYPES: [(&str, &str); 7] = [
|
||||
("Drop shadow", "dropShadow"),
|
||||
("Inner shadow", "innerShadow"),
|
||||
("Layer blur", "layerBlur"),
|
||||
|
||||
@@ -1003,7 +1003,7 @@ impl PrototypeSettings {
|
||||
];
|
||||
|
||||
/// The device whose screen is [`custom_size`](Self::custom_size) (no body is drawn around it).
|
||||
pub const CUSTOM_DEVICE: &'static str = "Custom size";
|
||||
pub const CUSTOM_DEVICE: &str = "Custom size";
|
||||
/// A new custom size.
|
||||
pub const CUSTOM_DEFAULT: [f64; 2] = [1280.0, 720.0];
|
||||
/// The largest side a custom size may have (points).
|
||||
|
||||
@@ -27,7 +27,7 @@ pub enum Section {
|
||||
|
||||
impl Section {
|
||||
/// The sidebar, top to bottom.
|
||||
const ALL: [(Section, Icon, &'static str); 3] = [
|
||||
const ALL: [(Section, Icon, &str); 3] = [
|
||||
(Section::Recents, Icon::Home, tr_noop("Recents")),
|
||||
(Section::Online, Icon::Online, tr_noop("Online")),
|
||||
(Section::Templates, Icon::Assets, tr_noop("Templates")),
|
||||
|
||||
Reference in New Issue
Block a user