Assorted block simplifications #2
purplesyringa/statusline:blocks into main lgtm but on second commit?
me when i force push on main :/
i forgor to clippy and now there's a small patch for src/block/git.rs that fixes it
@ -24,0 +19,4 @@
.file_name()
.to_str()
.unwrap_or_default()
.ends_with(":2,")
.to_str().unwrap().ends_with() does not look that nice (yeah i wrote that about a year ago but still)
maybe try using slice::ends_with? i tried finding something that could convert OsString/OsStr to [u8] but couldn't find anything suitable
upd: std::os::unix::ffi::OsStrExt::as_bytes can be used but forces unix (do we care?)
fixed in the latest commit with as_encoded_bytes
yeah fair (looks like it's zero-cost)
5dbdd777ac
to 439ac60375
:3
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?