@@ -6,7 +6,7 @@ use anyhow::{Context, Result};
66use std:: { collections:: BTreeMap , sync:: LazyLock } ;
77
88/// Map of patches keyed by name, with the file patches and an optional TOML patch
9- type PatchMap = BTreeMap < & ' static str , ( Vec < FilePatch > , Option < String > ) > ;
9+ type PatchMap = BTreeMap < & ' static str , ( Vec < FilePatch > , Option < & ' static str > ) > ;
1010
1111/// The patches, keyed by name
1212static PATCHES : LazyLock < PatchMap > = LazyLock :: new ( get_all_patches) ;
@@ -71,7 +71,7 @@ fn get_all_patches() -> PatchMap {
7171 // The simple example with the ironing-out loop turned on
7272 (
7373 "simple_ironing_out" ,
74- ( vec ! [ ] , Some ( "max_ironing_out_iterations = 10" . to_string ( ) ) ) ,
74+ ( vec ! [ ] , Some ( "max_ironing_out_iterations = 10" ) ) ,
7575 ) ,
7676 ]
7777 . into_iter ( )
@@ -84,7 +84,7 @@ pub fn get_patch_names() -> impl Iterator<Item = &'static str> {
8484}
8585
8686/// Get patches for the named patched example
87- pub fn get_patches ( name : & str ) -> Result < & ' static ( Vec < FilePatch > , Option < String > ) > {
87+ pub fn get_patches ( name : & str ) -> Result < & ' static ( Vec < FilePatch > , Option < & ' static str > ) > {
8888 PATCHES
8989 . get ( name)
9090 . with_context ( || format ! ( "Patched example '{name}' not found" ) )
0 commit comments