Skip to content
Myr

Fix merge conflict

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent f592155 · Browse files · 1 file+1 added−16 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−16 removed

  • other:+1 added−16 removed

1 file+1 added−16 removed

modified:src/export/mod.rs+1 added-16 removed
40 unmodified lines
41 filename: String,42}4344/// Handles the management of multiple file exporters.45#[derive(Default)]46pub struct ExportManager {47 exporters: Vec<ExporterWithFilename>,48}4949impl Default for ExportManager {50 /// Create a new ExportManager51 fn default() -> ExportManager {52 ExportManager {53 exporters: Vec::new(),54 }55 }56}5750impl ExportManager {51 /// Add an additional exporter to the ExportManager52 pub fn add_exporter(&mut self, export_type: ExportType, filename: &str) -> Result<()> {53 let _ = File::create(filename)?;
21 unmodified lines
75 Ok(())76 }77}7887impl Default for ExportManager {88 /// Create a new default ExportManager89 fn default() -> Self {90 ExportManager::new()91 }92}9379/// Write the given content to a file with the specified name80fn write_to_file(filename: &str, content: &[u8]) -> Result<()> {81 let mut file = OpenOptions::new().write(true).open(filename)?;82 file.write_all(content)
1 unmodified line