From 98990721cfeaae4faad26b9870634e7f3c08f036 Mon Sep 17 00:00:00 2001 From: ljedrz Date: Mon, 5 Oct 2020 16:53:29 +0200 Subject: [PATCH] clippy: fix redundant_static_lifetimes Signed-off-by: ljedrz --- compiler/src/expression/circuit/access.rs | 2 +- typed/src/errors/error.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/expression/circuit/access.rs b/compiler/src/expression/circuit/access.rs index 7ad1eb5653..b7e270cfaa 100644 --- a/compiler/src/expression/circuit/access.rs +++ b/compiler/src/expression/circuit/access.rs @@ -29,7 +29,7 @@ use snarkos_models::{ gadgets::r1cs::ConstraintSystem, }; -static SELF_KEYWORD: &'static str = "self"; +static SELF_KEYWORD: &str = "self"; impl> ConstrainedProgram { pub fn enforce_circuit_access>( diff --git a/typed/src/errors/error.rs b/typed/src/errors/error.rs index 31b575b9af..7e8f8c6aaa 100644 --- a/typed/src/errors/error.rs +++ b/typed/src/errors/error.rs @@ -18,7 +18,7 @@ use crate::Span; use std::{fmt, path::PathBuf}; -pub const INDENT: &'static str = " "; +pub const INDENT: &str = " "; /// Formatted compiler error type /// --> file.leo 2:8