We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7621a5b commit 29df050Copy full SHA for 29df050
src/librustdoc/docfs.rs
@@ -36,8 +36,8 @@ pub struct DocFS {
36
}
37
38
impl DocFS {
39
- pub fn new(errors: &Sender<String>) -> DocFS {
40
- DocFS { sync_only: false, errors: Some(errors.clone()) }
+ pub fn new(errors: Sender<String>) -> DocFS {
+ DocFS { sync_only: false, errors: Some(errors) }
41
42
43
pub fn set_sync_only(&mut self, sync_only: bool) {
src/librustdoc/html/render/mod.rs
@@ -462,7 +462,7 @@ impl FormatRenderer for Context {
462
style_files,
463
resource_suffix,
464
static_root_path,
465
- fs: DocFS::new(&sender),
+ fs: DocFS::new(sender),
466
edition,
467
codes: ErrorCodes::from(UnstableFeatures::from_environment().is_nightly_build()),
468
playground,
0 commit comments