Skip to content

Commit ca60c40

Browse files
committed
Remove unnecessary clone call for panic_strategy
1 parent 5f5ea79 commit ca60c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_metadata/cstore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl CrateMetadata {
208208
}
209209

210210
pub fn panic_strategy(&self) -> PanicStrategy {
211-
self.root.panic_strategy.clone()
211+
self.root.panic_strategy
212212
}
213213

214214
pub fn edition(&self) -> Edition {

0 commit comments

Comments
 (0)