make clippy happy

This commit is contained in:
Abraham Toriz 2021-08-04 18:40:49 -05:00
parent 8b9f510097
commit 98a43ea12f
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ impl<'a> Command<'a> for InCommand {
let (start, needs_warning) = time_or_warning(start, db)?;
db.entry_insert(start, None, note.map(|n| n), &sheet)?;
db.entry_insert(start, None, note, &sheet)?;
writeln!(out, "Checked into sheet \"{}\".", sheet)?;

View File

@ -37,7 +37,7 @@ pub fn get_string(note_editor: Option<&str>, prev_contents: Option<String>) -> R
let mut tmpfile = NamedTempFile::new().map_err(|e| NoTmpFile(e.to_string()))?;
if let Some(contents) = prev_contents {
tmpfile.write(contents.as_bytes())?;
tmpfile.write_all(contents.as_bytes())?;
tmpfile.seek(SeekFrom::Start(0))?;
}