Skip to content

Commit

Permalink
Some cosmetics
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Egger <daniel.egger@axiros.com>
  • Loading branch information
therealprof committed Dec 4, 2024
1 parent d8b7577 commit 2dfc9af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rusp-bin/src/bin/rusp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,10 +706,10 @@ fn encode_msg_body_buf(typ: MsgType) -> Result<Vec<u8>> {

fn get_out_stream(filename: Option<PathBuf>) -> Result<Box<dyn Write>> {
if let Some(filename) = filename {
return Ok(Box::new(File::create(filename)?));
Ok(Box::new(File::create(filename)?))
} else {
Ok(Box::new(stdout()))
}

Ok(Box::new(stdout()))
}

/// Write the given USP Msg to the output stream in the specified format
Expand Down
2 changes: 1 addition & 1 deletion rusp-lib/src/usp_builder/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl RecordBuilder {

let mut record = Record {
version: if self.version.is_empty() {
"1.3.".into()
"1.3".into()
} else {
self.version
},
Expand Down

0 comments on commit 2dfc9af

Please sign in to comment.