Skip to content

Commit e7395b8

Browse files
committed
Use auto deref
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 9d35fe0 commit e7395b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl PgpPublicKey {
171171
/// Retrieve the key.
172172
pub(crate) fn cert(&self) -> &Cert {
173173
match self {
174-
Self::Builtin => &*BUILTIN_PGP_KEY,
174+
Self::Builtin => &BUILTIN_PGP_KEY,
175175
Self::FromEnvironment(_, k) => k,
176176
Self::FromConfiguration(_, k) => k,
177177
}

src/dist/component/package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl<'a> TarPackage<'a> {
149149
// The rust-installer packages unpack to a directory called
150150
// $pkgname-$version-$target. Skip that directory when
151151
// unpacking.
152-
unpack_without_first_dir(&mut archive, &*temp_dir, notify_handler)
152+
unpack_without_first_dir(&mut archive, &temp_dir, notify_handler)
153153
.context("failed to extract package (perhaps you ran out of disk space?)")?;
154154

155155
Ok(TarPackage(

0 commit comments

Comments
 (0)