Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix deprecation warning timestamp_subsec_nanos() #6149

Merged
merged 2 commits into from
Mar 30, 2024

Commits on Mar 30, 2024

  1. tests: fix deprecation warning timestamp_subsec_nanos()

    When building coreutils I got the following deprecation warning:
    ```
    warning: use of deprecated method `chrono::NaiveDateTime::timestamp_subsec_nanos`: use `.and_utc().timestamp_subsec_nanos()` instead
      --> tests/by-util/test_touch.rs:37:59
       |
    37 | ..._utc().timestamp(), tm.timestamp_subsec_nanos())
       |                           ^^^^^^^^^^^^^^^^^^^^^^
       |
       = note: `#[warn(deprecated)]` on by default
    
    warning: `coreutils` (test "tests") generated 1 warning
    ```
    This commit fixes it.
    mvo5 committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    a2f8084 View commit details
    Browse the repository at this point in the history
  2. tests: fix formating of test_touch.rs

    Thanks to Sylvestre!
    
    Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
    mvo5 and sylvestre committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    b703ec8 View commit details
    Browse the repository at this point in the history