evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / le / lemurs / 0001-fix-static-lifetime-string.patch
blobfd2e06e2080f885c765c956fddacf6dab24cf05a
1 tree 18207ad257a4c0a9ffc4fd250360a91d0b5240cb
2 parent 37963b8ff6945ae8bdbabee658e5e36d0f67b84a
3 author Noa Aarts <noa@voorwaarts.nl> Tue Nov 5 13:49:49 2024 +0100
4 committer Noa Aarts <noa@voorwaarts.nl> Tue Nov 5 13:49:49 2024 +0100
6 fix static lifetime for string
8 This fixes a compiler error without changing functionality
10 diff --git a/src/config.rs b/src/config.rs
11 index f4bca31..a4fc6bf 100644
12 --- a/src/config.rs
13 +++ b/src/config.rs
14 @@ -645,7 +645,7 @@ struct Variable<'a> {
17 impl<'a> Variable<'a> {
18 - const START_SYMBOL: &str = "$";
19 + const START_SYMBOL: &'static str = "$";
21 fn span(&self) -> std::ops::Range<usize> {
22 self.start..self.start + Self::START_SYMBOL.len() + self.ident.len()