@@ -175,7 +175,7 @@ fn parse_kdl_node(annotations: &mut ScriptAnnotations, node: &KdlNode) -> Result
175175
176176 let hash = node
177177 . get ( "hash" )
178- . and_then ( |e| e. value ( ) . as_string ( ) )
178+ . and_then ( |e| e. as_string ( ) )
179179 . unwrap_or ( "content" ) ;
180180
181181 let hash_method = match hash {
@@ -202,7 +202,7 @@ fn parse_kdl_node(annotations: &mut ScriptAnnotations, node: &KdlNode) -> Result
202202
203203 let required = node
204204 . get ( "required" )
205- . and_then ( |e| e. value ( ) . as_bool ( ) )
205+ . and_then ( |e| e. as_bool ( ) )
206206 . unwrap_or ( true ) ;
207207
208208 annotations. outputs . push ( OutputSpec { path, required } ) ;
@@ -218,13 +218,13 @@ fn parse_kdl_node(annotations: &mut ScriptAnnotations, node: &KdlNode) -> Result
218218 }
219219
220220 "cache" => {
221- if let Some ( ttl) = node. get ( "ttl" ) . and_then ( |e| e. value ( ) . as_string ( ) ) {
221+ if let Some ( ttl) = node. get ( "ttl" ) . and_then ( |e| e. as_string ( ) ) {
222222 annotations. cache_ttl = Some ( parse_duration ( ttl) ?) ;
223223 }
224- if let Some ( key) = node. get ( "key" ) . and_then ( |e| e. value ( ) . as_string ( ) ) {
224+ if let Some ( key) = node. get ( "key" ) . and_then ( |e| e. as_string ( ) ) {
225225 annotations. cache_key = Some ( key. to_string ( ) ) ;
226226 }
227- if let Some ( disabled) = node. get ( "disabled" ) . and_then ( |e| e. value ( ) . as_bool ( ) ) {
227+ if let Some ( disabled) = node. get ( "disabled" ) . and_then ( |e| e. as_bool ( ) ) {
228228 annotations. cache_disabled = disabled;
229229 }
230230 }
@@ -235,10 +235,7 @@ fn parse_kdl_node(annotations: &mut ScriptAnnotations, node: &KdlNode) -> Result
235235 annotations. runtime = runtime_name;
236236 }
237237
238- if let Some ( include) = node
239- . get ( "include-version" )
240- . and_then ( |e| e. value ( ) . as_bool ( ) )
241- {
238+ if let Some ( include) = node. get ( "include-version" ) . and_then ( |e| e. as_bool ( ) ) {
242239 annotations. runtime_version = include;
243240 }
244241 }
@@ -256,13 +253,13 @@ fn parse_kdl_node(annotations: &mut ScriptAnnotations, node: &KdlNode) -> Result
256253 }
257254
258255 "exec" => {
259- if let Some ( cwd) = node. get ( "cwd" ) . and_then ( |e| e. value ( ) . as_string ( ) ) {
256+ if let Some ( cwd) = node. get ( "cwd" ) . and_then ( |e| e. as_string ( ) ) {
260257 annotations. exec_cwd = Some ( PathBuf :: from ( cwd) ) ;
261258 }
262- if let Some ( timeout) = node. get ( "timeout" ) . and_then ( |e| e. value ( ) . as_string ( ) ) {
259+ if let Some ( timeout) = node. get ( "timeout" ) . and_then ( |e| e. as_string ( ) ) {
263260 annotations. exec_timeout = Some ( parse_duration ( timeout) ?) ;
264261 }
265- if let Some ( shell) = node. get ( "shell" ) . and_then ( |e| e. value ( ) . as_bool ( ) ) {
262+ if let Some ( shell) = node. get ( "shell" ) . and_then ( |e| e. as_bool ( ) ) {
266263 annotations. exec_shell = shell;
267264 }
268265 }
@@ -273,7 +270,7 @@ fn parse_kdl_node(annotations: &mut ScriptAnnotations, node: &KdlNode) -> Result
273270
274271 let use_outputs = node
275272 . get ( "use-outputs" )
276- . and_then ( |e| e. value ( ) . as_bool ( ) )
273+ . and_then ( |e| e. as_bool ( ) )
277274 . unwrap_or ( false ) ;
278275
279276 annotations. depends_on . push ( DependencySpec {
0 commit comments