mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
scmdaemon: use io::Write on osx
Summary: D9030136 removed the `use` statement and broke OSX build: ``` Compiling scm_daemon v0.1.0 (file:///.../exec/scm_daemon) error[E0599]: no method named `write_fmt` found for type `std::fs::File` in the current scope --> src/main.rs:62:33 | 62 | File::create(path)?.write_fmt(format_args!("{}", std::process::id()))?; | ^^^^^^^^^ | = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope, perhaps add a `use` for it: | 14 | use std::io::Write; | ``` Reviewed By: DurhamG, singhsrb Differential Revision: D9066112 fbshipit-source-id: f685b75c4032e8388529f6cf8a9724426bd15baa
This commit is contained in:
parent
3043460653
commit
cce43b11c1
@ -18,6 +18,9 @@ use commitcloudsubscriber::{CommitCloudConfig, CommitCloudTcpReceiverService,
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
use std::io::Write;
|
||||
|
||||
/// This is what we're going to decode toml config into.
|
||||
/// Each field is optional, meaning that it doesn't have to be present in TOML.
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
Loading…
Reference in New Issue
Block a user