mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
23 lines
719 B
Diff
23 lines
719 B
Diff
tree 18207ad257a4c0a9ffc4fd250360a91d0b5240cb
|
|
parent 37963b8ff6945ae8bdbabee658e5e36d0f67b84a
|
|
author Noa Aarts <noa@voorwaarts.nl> Tue Nov 5 13:49:49 2024 +0100
|
|
committer Noa Aarts <noa@voorwaarts.nl> Tue Nov 5 13:49:49 2024 +0100
|
|
|
|
fix static lifetime for string
|
|
|
|
This fixes a compiler error without changing functionality
|
|
|
|
diff --git a/src/config.rs b/src/config.rs
|
|
index f4bca31..a4fc6bf 100644
|
|
--- a/src/config.rs
|
|
+++ b/src/config.rs
|
|
@@ -645,7 +645,7 @@ struct Variable<'a> {
|
|
}
|
|
|
|
impl<'a> Variable<'a> {
|
|
- const START_SYMBOL: &str = "$";
|
|
+ const START_SYMBOL: &'static str = "$";
|
|
|
|
fn span(&self) -> std::ops::Range<usize> {
|
|
self.start..self.start + Self::START_SYMBOL.len() + self.ident.len()
|