mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Avoid uses of Record
internals again (#12312)
# Description Again avoid uses of the `Record` internals, so we are free to change the data layout - **Don't use internals of `Record` in `into sqlite`** - **Don't use internals of `Record` in `to xml`** Remaining: `rename` # User-Facing Changes None
This commit is contained in:
committed by
GitHub
parent
968926a327
commit
910e3b52a7
@ -269,8 +269,7 @@ impl Job {
|
||||
fn find_invalid_column(record: &Record) -> Option<&String> {
|
||||
const VALID_COLS: [&str; 3] = [COLUMN_TAG_NAME, COLUMN_ATTRS_NAME, COLUMN_CONTENT_NAME];
|
||||
record
|
||||
.cols
|
||||
.iter()
|
||||
.columns()
|
||||
.find(|col| !VALID_COLS.contains(&col.as_str()))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user