memoryd: the day and the month of a time with get, never a slice
Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
@@ -100,7 +100,7 @@ pub fn submit(
|
||||
// accepted")).
|
||||
args.check()?;
|
||||
let rfc = ctx.now.to_rfc3339();
|
||||
let day = &rfc[..10];
|
||||
let day = rfc.get(..10).unwrap_or("0000-00-00");
|
||||
let taken = waiting(store)?
|
||||
.iter()
|
||||
.filter(|line| match line {
|
||||
|
||||
Reference in New Issue
Block a user