Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Mar 26, 2024
1 parent f67bff6 commit a9b7f2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use alloc::string::String;
#[cfg(feature = "alloc")]
use alloc::string::ToString as _;
use core::cmp::Ordering;
use core::convert::TryFrom;
use core::fmt::Debug;
use core::fmt::Display;
use core::fmt::Formatter;
Expand Down Expand Up @@ -280,6 +279,12 @@ mod resolution {
#[repr(transparent)]
pub struct Path<'a>(Cow<'a, str>);

impl<'a> Default for Path<'a> {
fn default() -> Self {
Self::new()
}
}

impl<'a> Path<'a> {
pub const fn new() -> Self {
Self(Cow::Borrowed(""))
Expand Down

0 comments on commit a9b7f2b

Please sign in to comment.