From 0f6698eb551a5e1189079b47f30e651c581a490f Mon Sep 17 00:00:00 2001 From: KAMADA Ken'ichi Date: Mon, 19 Feb 2018 23:25:24 +0900 Subject: [PATCH] Explicit static lifetimes are no longer needed for constants in Rust 1.17. --- src/tag.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tag.rs b/src/tag.rs index 68cdeb5..8e45e23 100644 --- a/src/tag.rs +++ b/src/tag.rs @@ -785,17 +785,17 @@ fn d_lightsrc(w: &mut fmt::Write, value: &Value) -> fmt::Result { // Flash (Exif 0x9209) fn d_flash(w: &mut fmt::Write, value: &Value) -> fmt::Result { - const FIRED: &'static [&'static str] = &["not fired", "fired"]; - const RETURN: &'static [&'static str] = &[ + const FIRED: &[&str] = &["not fired", "fired"]; + const RETURN: &[&str] = &[ ", no return light detection function", ", reserved return light", ", return light not detected", ", return light detected", ]; - const AUTO: &'static [&'static str] = &[ + const AUTO: &[&str] = &[ ", unknown auto mode", ", forced", ", suppressed", ", auto"]; - const FUNCTION: &'static [&'static str] = &["", ", no function present"]; - const RED_EYE: &'static [&'static str] = &["", ", red-eye reduction"]; + const FUNCTION: &[&str] = &["", ", no function present"]; + const RED_EYE: &[&str] = &["", ", red-eye reduction"]; if let Some(v) = value.get_uint(0) { write!(w, "{}{}{}{}{}{}",