Skip to content

Commit 42d7b14

Browse files
committed
Fix clippy warning
1 parent d6322fb commit 42d7b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl Internal {
5858

5959
/// Returns the internal exports.
6060
pub fn exports(&self) -> Result<&Container<Exports>, Error> {
61-
self.0.as_ref().map_err(|err| err.clone())
61+
self.0.as_ref().map_err(|err| *err)
6262
}
6363

6464
/// Returns the current buffs or an error.

0 commit comments

Comments
 (0)