make clippy happy
This commit is contained in:
parent
8b9f510097
commit
98a43ea12f
|
@ -59,7 +59,7 @@ impl<'a> Command<'a> for InCommand {
|
||||||
|
|
||||||
let (start, needs_warning) = time_or_warning(start, db)?;
|
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)?;
|
writeln!(out, "Checked into sheet \"{}\".", sheet)?;
|
||||||
|
|
||||||
|
|
|
@ -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()))?;
|
let mut tmpfile = NamedTempFile::new().map_err(|e| NoTmpFile(e.to_string()))?;
|
||||||
|
|
||||||
if let Some(contents) = prev_contents {
|
if let Some(contents) = prev_contents {
|
||||||
tmpfile.write(contents.as_bytes())?;
|
tmpfile.write_all(contents.as_bytes())?;
|
||||||
tmpfile.seek(SeekFrom::Start(0))?;
|
tmpfile.seek(SeekFrom::Start(0))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue