Skip to content

Commit 3dbac42

Browse files
committed
Renamed SourceIdIntoUrl -> SourceIdAsUrl
1 parent 79f3512 commit 3dbac42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/core/source/source_id.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ impl SourceId {
144144
}
145145

146146
/// A view of the `SourceId` that can be `Display`ed as a URL.
147-
pub fn as_url(&self) -> SourceIdIntoUrl<'_> {
148-
SourceIdIntoUrl {
147+
pub fn as_url(&self) -> SourceIdAsUrl<'_> {
148+
SourceIdAsUrl {
149149
inner: &*self.inner,
150150
}
151151
}
@@ -545,11 +545,11 @@ impl Hash for SourceId {
545545
}
546546

547547
/// A `Display`able view into a `SourceId` that will write it as a url
548-
pub struct SourceIdIntoUrl<'a> {
548+
pub struct SourceIdAsUrl<'a> {
549549
inner: &'a SourceIdInner,
550550
}
551551

552-
impl<'a> fmt::Display for SourceIdIntoUrl<'a> {
552+
impl<'a> fmt::Display for SourceIdAsUrl<'a> {
553553
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
554554
match *self.inner {
555555
SourceIdInner {

0 commit comments

Comments
 (0)