summaryrefslogtreecommitdiffstats
path: root/src/source.rs
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2022-01-29 12:14:37 +0100
committerDaniel Eades <danieleades@hotmail.com>2022-01-29 14:01:49 +0100
commit6ecfeec624ae9e145b66431188bae31c17bcd154 (patch)
tree82a552f664dd98c5e55007aff914632834810e33 /src/source.rs
parent53e43fbcf96b5c2a661d052a6e3d55fc3709f1e1 (diff)
use 'Self' to refer to own type
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/source.rs b/src/source.rs
index 060657b..94f1c35 100644
--- a/src/source.rs
+++ b/src/source.rs
@@ -76,7 +76,7 @@ impl Clone for Box<dyn AsyncSource + Send + Sync> {
}
impl Clone for Box<dyn Source + Send + Sync> {
- fn clone(&self) -> Box<dyn Source + Send + Sync> {
+ fn clone(&self) -> Self {
self.clone_into_box()
}
}