Skip to content

Add precise timestamp with nanos - #94

Merged
KodrAus merged 1 commit into
rust-cli:masterfrom
ivan-ochc:precise-timestamp
Jul 23, 2018
Merged

KodrAus merged 1 commit into
rust-cli:masterfrom
ivan-ochc:precise-timestamp

Conversation

@ivan-ochc

Copy link
Copy Markdown
Contributor

You have to use the following function to enable timestamp with nanos:
builder.default_format_timestamp_nanos(true);
Example of output:
2018-07-23T12:16:12.201528000Z

Check #87 for details.

@KodrAus KodrAus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @ivan-ochc! This looks good to me.

@KodrAus
KodrAus merged commit 8cab4a7 into rust-cli:master Jul 23, 2018
epage added a commit that referenced this pull request Sep 8, 2026
`clippy::from_iter_instead_of_collect` was
[deprecated](rust-lang/rust-clippy#17208) a
couple of months ago, and shows a warning on `beta` (`1.98.0`) when
there is any config set for it:
```
warning: lint `clippy::from_iter_instead_of_collect` has been removed: lint has proved problematic
  |
  = note: requested on the command line with `-W clippy::from_iter_instead_of_collect`
  = note: `#[warn(renamed_and_removed_lints)]` on by default
```

Given that `1.98.0` will be `stable` in a couple of weeks
(`2026-08-20`), I figured it would be a good idea to remove
`from_iter_instead_of_collect` from `[lints.clippy]` early.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants