summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2021-11-22 22:54:43 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2021-11-22 22:55:00 +0100
commit6126258a2947cf3421c1c84634b307517a93505b (patch)
treeb826af2dcceb7e173fbac23ef3e9988d5b7dfca0 /src
parent689b732184c227b4f49e2b509fad06c1f31c4e4b (diff)
downloadvtcol-6126258a2947cf3421c1c84634b307517a93505b.tar.gz
get rid of useless lifetimes
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 18e554d..213d58c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -127,7 +127,7 @@ const PALETTE_SIZE: usize = 16;
const PALETTE_BYTES: usize = PALETTE_SIZE * 3; /* 16 * sizeof(int) */
const RAW_COLEXPR_SIZE: usize = 6; /* e. g. 0xBADF00 */
-pub type RawPalette<'a> = [u32; PALETTE_SIZE];
+pub type RawPalette = [u32; PALETTE_SIZE];
#[derive(Debug)]
pub enum Color
@@ -211,7 +211,7 @@ impl fmt::Display for Color
pub struct Builtin
{
names: &'static [&'static str],
- palette: &'static RawPalette<'static>,
+ palette: &'static RawPalette,
}
/** Vanilla Linux colors. */
@@ -329,7 +329,7 @@ pub enum Scheme
Custom(Option<PathBuf>),
}
-impl<'a> fmt::Display for Scheme
+impl fmt::Display for Scheme
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result
{
@@ -629,9 +629,9 @@ impl TryFrom<&Scheme> for Palette
}
/** Obtain a ``Palette`` from a ``RawPalette``. */
-impl From<&RawPalette<'_>> for Palette
+impl From<&RawPalette> for Palette
{
- fn from(colors: &RawPalette<'_>) -> Self
+ fn from(colors: &RawPalette) -> Self
{
let mut idx: usize = 0;
let mut pal: [u8; PALETTE_BYTES] = [0; PALETTE_BYTES];