Skip to content
Myr

fix: New clippy warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by Thayne McCombs · parent eead188 · Browse files · 1 file+14 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−14 removed

  • tests:+14 added−14 removed

1 file+14 added−14 removed

modified:tests/tests.rs+14 added-14 removed
1272 unmodified lines
1273 {abs_path}/one/two/three/1274 {abs_path}/one/two/three/d.foo1275 {abs_path}/one/two/three/directory_foo/1276 {abs_path}/symlink",1277 abs_path = &abs_path1277 abs_path = abs_path1278 ),1279 );12801281 te.assert_output(
4 unmodified lines
1286 {abs_path}/one/two/c.foo1287 {abs_path}/one/two/C.Foo21288 {abs_path}/one/two/three/d.foo1289 {abs_path}/one/two/three/directory_foo/",1290 abs_path = &abs_path1290 abs_path = abs_path1291 ),1292 );1293}1294
10 unmodified lines
1305 {abs_path}/one/two/c.foo1306 {abs_path}/one/two/C.Foo21307 {abs_path}/one/two/three/d.foo1308 {abs_path}/one/two/three/directory_foo/",1309 abs_path = &abs_path1309 abs_path = abs_path1310 ),1311 );1312}1313
11 unmodified lines
1325 {abs_path}/one/two/c.foo1326 {abs_path}/one/two/C.Foo21327 {abs_path}/one/two/three/d.foo1328 {abs_path}/one/two/three/directory_foo/",1329 abs_path = &abs_path1329 abs_path = abs_path1330 ),1331 );1332}1333
225 unmodified lines
1559 {dir}/one/two/three/1560 {dir}/one/two/three/d.foo1561 {dir}/one/two/three/directory_foo/1562 {dir}/symlink",1563 dir = &parent_parent1563 dir = parent_parent1564 ),1565 );1566}1567
11 unmodified lines
1579 {abs_path}/{expected_path}/C.Foo21580 {abs_path}/{expected_path}/three/1581 {abs_path}/{expected_path}/three/d.foo1582 {abs_path}/{expected_path}/three/directory_foo/",1583 abs_path = &abs_path,1583 abs_path = abs_path,1584 expected_path = expected_path1585 ),1586 );1587}
9 unmodified lines
1597 {abs_path}/symlink/C.Foo21598 {abs_path}/symlink/three/1599 {abs_path}/symlink/three/d.foo1600 {abs_path}/symlink/three/directory_foo/",1601 abs_path = &abs_path1601 abs_path = abs_path1602 ),1603 );1604}1605
15 unmodified lines
1621 &format!(1622 "{abs_path}/{expected_path}/three/1623 {abs_path}/{expected_path}/three/d.foo1624 {abs_path}/{expected_path}/three/directory_foo/",1625 abs_path = &abs_path,1625 abs_path = abs_path,1626 expected_path = expected_path1627 ),1628 );1629}
12 unmodified lines
1642 &format!(1643 "{abs_path}/symlink/three/1644 {abs_path}/symlink/three/d.foo1645 {abs_path}/symlink/three/directory_foo/",1646 abs_path = &abs_path1646 abs_path = abs_path1647 ),1648 );1649}1650/// Exclude patterns (--exclude)
120 unmodified lines
1771 {abs_path}/one/two/C.Foo21772 {abs_path}/one/two/c.foo1773 {abs_path}/one/two/three/d.foo1774 {abs_path}/one/two/three/directory_foo",1775 abs_path = &abs_path1775 abs_path = abs_path1776 ),1777 );17781779 te.assert_output(
90 unmodified lines
1870 test C.Foo21871 test c.foo1872 test d.foo1873 test directory_foo",1874 abs_path = &abs_path1874 abs_path = abs_path1875 ),1876 );18771878 te.assert_output(
47 unmodified lines
1926 te.assert_output(1927 &["--absolute-path", "foo", "--exec-batch", "echo"],1928 &format!(1929 "{abs_path}/a.foo {abs_path}/one/b.foo {abs_path}/one/two/C.Foo2 {abs_path}/one/two/c.foo {abs_path}/one/two/three/d.foo {abs_path}/one/two/three/directory_foo",1930 abs_path = &abs_path1930 abs_path = abs_path1931 ),1932 );19331934 te.assert_output(
603 unmodified lines
2538 );25392540 // Ignore base directory when absolute path is used2541 let (te, abs_path) = get_test_env_with_abs_path(DEFAULT_DIRS, DEFAULT_FILES);2542 let abs_base_dir = &format!("{abs_path}/one/two/", abs_path = &abs_path);2542 let abs_base_dir = &format!("{abs_path}/one/two/", abs_path = abs_path);2543 te.assert_output(2544 &["--base-directory", abs_base_dir, "foo", &abs_path],2545 &format!(2546 "{abs_path}/a.foo
1 unmodified line
2548 {abs_path}/one/two/c.foo2549 {abs_path}/one/two/C.Foo22550 {abs_path}/one/two/three/d.foo2551 {abs_path}/one/two/three/directory_foo/",2552 abs_path = &abs_path2552 abs_path = abs_path2553 ),2554 );2555}2556
322 unmodified lines