File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -520,8 +520,7 @@ impl Bombadil {
520520 } ;
521521
522522 // Resolve variables from path
523- let vars = Variables :: from_paths ( & path, & config. settings . vars ) ?
524- . with_os ( ) ;
523+ let vars = Variables :: from_paths ( & path, & config. settings . vars ) ?. with_os ( ) ;
525524
526525 // Resolve hooks from settings
527526 let posthooks = config
Original file line number Diff line number Diff line change @@ -179,12 +179,15 @@ impl Variables {
179179 . and_then ( |value| value. as_object_mut ( ) )
180180 }
181181
182- pub ( crate ) fn with_os ( mut self ) -> Self {
182+ pub ( crate ) fn with_os ( mut self ) -> Self {
183183 let Some ( vars) = self . inner . as_object_mut ( ) else {
184184 panic ! ( "Variables should be a Value::Object" ) ;
185185 } ;
186186
187- vars. insert ( "os" . to_string ( ) , Value :: String ( std:: env:: consts:: OS . to_string ( ) ) ) ;
187+ vars. insert (
188+ "os" . to_string ( ) ,
189+ Value :: String ( std:: env:: consts:: OS . to_string ( ) ) ,
190+ ) ;
188191 self
189192 }
190193}
You can’t perform that action at this time.
0 commit comments