mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:25:43 +02:00
Use IntoValue
in config code (#13751)
# Description Cleans up and refactors the config code using the `IntoValue` macro. Shoutout to @cptpiepmatz for making the macro! # User-Facing Changes Should be none. # After Submitting Somehow refactor the reverse transformation.
This commit is contained in:
@ -167,7 +167,7 @@ fn rm(
|
||||
}
|
||||
|
||||
let span = call.head;
|
||||
let rm_always_trash = stack.get_config(engine_state).rm_always_trash;
|
||||
let rm_always_trash = stack.get_config(engine_state).rm.always_trash;
|
||||
|
||||
if !TRASH_SUPPORTED {
|
||||
if rm_always_trash {
|
||||
|
Reference in New Issue
Block a user