]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_target/spec/wasm32_unknown_unknown.rs
Auto merge of #68414 - michaelwoerister:share-drop-glue, r=alexcrichton
[rust.git] / src / librustc_target / spec / wasm32_unknown_unknown.rs
index 909527d2b612064d502c7e0bbf86fad4dd70bfcf..22d3885e4afa781a0f9927f5f4933e9aee348583 100644 (file)
@@ -10,8 +10,8 @@
 //! This target is more or less managed by the Rust and WebAssembly Working
 //! Group nowadays at https://github.com/rustwasm.
 
-use super::{LldFlavor, LinkerFlavor, Target};
 use super::wasm32_base;
+use super::{LinkerFlavor, LldFlavor, Target};
 
 pub fn target() -> Result<Target, String> {
     let mut options = wasm32_base::options();
@@ -28,7 +28,9 @@ pub fn target() -> Result<Target, String> {
     // For now this target just never has an entry symbol no matter the output
     // type, so unconditionally pass this.
     clang_args.push("-Wl,--no-entry".to_string());
-    options.pre_link_args.get_mut(&LinkerFlavor::Lld(LldFlavor::Wasm))
+    options
+        .pre_link_args
+        .get_mut(&LinkerFlavor::Lld(LldFlavor::Wasm))
         .unwrap()
         .push("--no-entry".to_string());