Indent
This commit is contained in:
parent
b1793fcb16
commit
a61d1d8d51
@ -26,12 +26,12 @@ use std::path::Path;
|
|||||||
fn main() {
|
fn main() {
|
||||||
vergen(OutputFns::all()).unwrap();
|
vergen(OutputFns::all()).unwrap();
|
||||||
let out_dir = env::var("OUT_DIR").unwrap();
|
let out_dir = env::var("OUT_DIR").unwrap();
|
||||||
let dest_path = Path::new(&out_dir).join("rustc_version.rs");
|
let dest_path = Path::new(&out_dir).join("rustc_version.rs");
|
||||||
let mut f = File::create(&dest_path).unwrap();
|
let mut f = File::create(&dest_path).unwrap();
|
||||||
f.write_all(format!("
|
f.write_all(format!("
|
||||||
/// Returns compiler version.
|
/// Returns compiler version.
|
||||||
pub fn rustc_version() -> &'static str {{
|
pub fn rustc_version() -> &'static str {{
|
||||||
\"{}\"
|
\"{}\"
|
||||||
}}
|
}}
|
||||||
", rustc_version::version()).as_bytes()).unwrap();
|
", rustc_version::version()).as_bytes()).unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user