Commit Graph

6 Commits

Author SHA1 Message Date
徐未来
367de2e160 proc-macros2 1.0.53升级至1.0.76
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-02 19:52:52 +08:00
openharmony_ci
07a217401d
回退 'Pull Request !4 : proc-macro2 1.0.53升级至1.0.76' 2024-04-02 03:32:41 +00:00
徐未来
7bc8a79f38 1.0.53升级至1.0.76
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-03-08 16:48:24 +08:00
David Tolnay
1beb3104c1
Resolve redundant_clone clippy lint
error: redundant clone
      --> tests/test_fmt.rs:17:58
       |
    17 |     let none_nonempty = Group::new(Delimiter::None, inner.clone());
       |                                                          ^^^^^^^^ help: remove this
       |
       = note: `-D clippy::redundant-clone` implied by `-D clippy::all`
    note: this value is dropped without further use
      --> tests/test_fmt.rs:17:53
       |
    17 |     let none_nonempty = Group::new(Delimiter::None, inner.clone());
       |                                                     ^^^^^
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone

    error: could not compile `proc-macro2` due to previous error
    warning: build failed, waiting for other jobs to finish...
    error: redundant clone
       --> tests/test.rs:188:19
        |
    188 |         let s2 = s.to_string().parse::<TokenStream>().unwrap().to_string();
        |                   ^^^^^^^^^^^^ help: remove this
        |
        = note: `-D clippy::redundant-clone` implied by `-D clippy::all`
    note: cloned value is neither consumed nor mutated
       --> tests/test.rs:188:18
        |
    188 |         let s2 = s.to_string().parse::<TokenStream>().unwrap().to_string();
        |                  ^^^^^^^^^^^^^
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
2021-09-30 01:08:15 -04:00
David Tolnay
4565d979c3
Run clippy on test suite too 2021-09-30 01:00:23 -04:00
David Tolnay
c55d421ab8
Add Group fmt test 2020-09-03 09:45:12 -07:00