My rustfmt is up-to-date with the gitlab ci one again
This commit is contained in:
parent
66c901265d
commit
b33bc268d5
|
@ -13,11 +13,7 @@ rust-latest:
|
|||
- cargo test --verbose --all
|
||||
- rustup component add clippy rustfmt
|
||||
- cargo clippy -- -D warnings
|
||||
####
|
||||
# Temporarily disabled while the CI version of rustfmt doesn't agree
|
||||
# with nickm's.
|
||||
#
|
||||
# - cargo fmt --all -- --check
|
||||
- cargo fmt --all -- --check
|
||||
|
||||
rust-nightly:
|
||||
stage: build
|
||||
|
|
|
@ -674,10 +674,24 @@ mod test {
|
|||
assert!(matches!(p, DeleteToEnd { low: 100 }));
|
||||
|
||||
let p = parse("30,40c\nHello\nWorld\n.\n")?;
|
||||
assert!(matches!(p, Replace{ low: 30, high: 40, .. }));
|
||||
assert!(matches!(
|
||||
p,
|
||||
Replace {
|
||||
low: 30,
|
||||
high: 40,
|
||||
..
|
||||
}
|
||||
));
|
||||
assert_eq!(p.lines(), Some(&["Hello", "World"][..]));
|
||||
let p = parse("30c\nHello\nWorld\n.\n")?;
|
||||
assert!(matches!(p, Replace{ low: 30, high: 30, .. }));
|
||||
assert!(matches!(
|
||||
p,
|
||||
Replace {
|
||||
low: 30,
|
||||
high: 30,
|
||||
..
|
||||
}
|
||||
));
|
||||
assert_eq!(p.lines(), Some(&["Hello", "World"][..]));
|
||||
|
||||
let p = parse("999a\nHello\nWorld\n.\n")?;
|
||||
|
|
Loading…
Reference in New Issue