-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: fix the build on Rust 1.42.0
Due to the CI issue fixed by PR #1580, we accidentally merged `tracing-subscriber` changes that don't compile on our MSRV, Rust 1.42.0. This includes: - use of associated consts on primitive types (`u64::MAX` rather than `std::u64::MAX`) - use of `#[cfg(...)]` on `if` expressions - use of the `str::strip_suffix` method, which wasn't stable on 1.42.0 This commit fixes these issues. These changes are mostly very simple and mechanical. The only significant change is changing the `StaticDirective` parsing code to not use `strip_suffix`, which changes the implementation around a bit...but it's still pretty straightforward. This should fix 1.42.0 compatibility.
- Loading branch information
Showing
5 changed files
with
49 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters