Unnecessary `to_string`
This commit is contained in:
parent
8296699fae
commit
4c1cb7534b
|
@ -206,9 +206,8 @@ fn exported_symbols_provider_local<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
|||
})
|
||||
.collect();
|
||||
|
||||
if let Some(_) = *tcx.sess.entry_fn.borrow() {
|
||||
let symbol_name = "main".to_string();
|
||||
let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new(&symbol_name));
|
||||
if tcx.sess.entry_fn.borrow().is_some() {
|
||||
let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new("main"));
|
||||
|
||||
symbols.push((exported_symbol, SymbolExportLevel::C));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue