cleanup: s/v.slice*()
/&v[a..b]
/g + remove redundant as_slice()
calls
This commit is contained in:
parent
d77f6d5366
commit
bce81e2464
59 changed files with 156 additions and 160 deletions
|
@ -40,7 +40,7 @@ pub fn main() {
|
|||
include_bytes!("syntax-extension-source-utils-files/includeme.fragment")
|
||||
[1] == (42 as u8)); // '*'
|
||||
// The Windows tests are wrapped in an extra module for some reason
|
||||
assert!((m1::m2::where_am_i().as_slice().ends_with("m1::m2")));
|
||||
assert!((m1::m2::where_am_i().ends_with("m1::m2")));
|
||||
|
||||
assert!(match (45, "( 2 * 3 ) + 5") {
|
||||
(line!(), stringify!((2*3) + 5)) => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue