Import fmt::Write using underscore

When we use the `fmt::Write` trait it is just to call its methods, we
can therefore, without any change to the logic, use `as _` when
importing the trait. This prevents naming conflicts.

Done in preparation for importing the `io::Write` trait.
This commit is contained in:
Tobin C. Harding 2023-12-08 09:48:00 +11:00
parent e2dbcb1d28
commit ebeb21fa7a
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
//! This module provides keys used in Bitcoin that can be roundtrip
//! (de)serialized.
use core::fmt::{self, Write};
use core::fmt::{self, Write as _};
use core::ops;
use core::str::FromStr;

View File

@ -6,7 +6,7 @@
//! We refer to the documentation on the types for more information.
use core::cmp::Ordering;
use core::fmt::{self, Write};
use core::fmt::{self, Write as _};
use core::str::FromStr;
use core::{default, ops};