mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 18:15:04 +02:00
Make Record.cols
private (#12317)
# Description Makes the `cols` field in `Record` private and fixes the implementation of `rename` to account for this change.
This commit is contained in:
@ -6,11 +6,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
|
||||
pub struct Record {
|
||||
/// Don't use this field publicly!
|
||||
///
|
||||
/// Only public as command `rename` is not reimplemented in a sane way yet
|
||||
/// Using it or making `vals` public will draw shaming by @sholderbach
|
||||
pub cols: Vec<String>,
|
||||
cols: Vec<String>,
|
||||
vals: Vec<Value>,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user