mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
Attempt rustup update
on each PR (#1345)
* Attempt update on each PR * Update fmt
This commit is contained in:
parent
fa910b95b7
commit
ba1b67c072
4 changed files with 10 additions and 4 deletions
|
@ -38,8 +38,8 @@ steps:
|
|||
if [ "$(uname)" == "Darwin" ]; then
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain "stable"
|
||||
export PATH=$HOME/.cargo/bin:$PATH
|
||||
rustup update
|
||||
fi
|
||||
rustup update
|
||||
rustc -Vv
|
||||
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
||||
rustup component add rustfmt
|
||||
|
|
|
@ -37,7 +37,9 @@ impl Plugin for Inc {
|
|||
if let Some(args) = call_info.args.positional {
|
||||
for arg in args {
|
||||
match arg {
|
||||
table @ Value {
|
||||
table
|
||||
@
|
||||
Value {
|
||||
value: UntaggedValue::Primitive(Primitive::ColumnPath(_)),
|
||||
..
|
||||
} => {
|
||||
|
|
|
@ -42,7 +42,9 @@ impl PerItemCommand for Edit {
|
|||
let replacement = call_info.args.expect_nth(1)?.tagged_unknown();
|
||||
|
||||
let stream = match value {
|
||||
obj @ Value {
|
||||
obj
|
||||
@
|
||||
Value {
|
||||
value: UntaggedValue::Row(_),
|
||||
..
|
||||
} => match obj.replace_data_at_column_path(&field, replacement.item.clone()) {
|
||||
|
|
|
@ -42,7 +42,9 @@ impl PerItemCommand for Insert {
|
|||
let replacement = call_info.args.expect_nth(1)?.tagged_unknown();
|
||||
|
||||
let stream = match value {
|
||||
obj @ Value {
|
||||
obj
|
||||
@
|
||||
Value {
|
||||
value: UntaggedValue::Row(_),
|
||||
..
|
||||
} => match obj.insert_data_at_column_path(&field, replacement.item.clone()) {
|
||||
|
|
Loading…
Reference in a new issue