[gnome-builder/bilelmoussaoui/rust-template] Rust template: don't specify the &'static lifetime



commit 326b292a308c49f64fc6b5b390634b284d10ae46
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue Feb 25 16:00:48 2020 +0100

    Rust template: don't specify the &'static lifetime
    
    static have already a &'static lifetime

 src/plugins/meson-templates/resources/src/config.rs.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/src/config.rs.in 
b/src/plugins/meson-templates/resources/src/config.rs.in
index 8735eda35..edb2c8955 100644
--- a/src/plugins/meson-templates/resources/src/config.rs.in
+++ b/src/plugins/meson-templates/resources/src/config.rs.in
@@ -1,3 +1,3 @@
-pub static PKGDATADIR: &'static str = @pkgdatadir@;
-pub static VERSION: &'static str = @VERSION@;
-pub static LOCALEDIR: &'static str = @localedir@;
\ No newline at end of file
+pub static PKGDATADIR: &str = @pkgdatadir@;
+pub static VERSION: &str = @VERSION@;
+pub static LOCALEDIR: &str = @localedir@;
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]