mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Pass by value
This commit is contained in:
@@ -36,8 +36,8 @@ pub struct DocFS {
|
||||
}
|
||||
|
||||
impl DocFS {
|
||||
pub fn new(errors: &Sender<String>) -> DocFS {
|
||||
DocFS { sync_only: false, errors: Some(errors.clone()) }
|
||||
pub fn new(errors: Sender<String>) -> DocFS {
|
||||
DocFS { sync_only: false, errors: Some(errors) }
|
||||
}
|
||||
|
||||
pub fn set_sync_only(&mut self, sync_only: bool) {
|
||||
|
||||
@@ -462,7 +462,7 @@ fn init(
|
||||
style_files,
|
||||
resource_suffix,
|
||||
static_root_path,
|
||||
fs: DocFS::new(&sender),
|
||||
fs: DocFS::new(sender),
|
||||
edition,
|
||||
codes: ErrorCodes::from(UnstableFeatures::from_environment().is_nightly_build()),
|
||||
playground,
|
||||
|
||||
Reference in New Issue
Block a user