git_index

Generates arguments to pass to stagit-index in descending order by commit date.
git clone https://git.philomathiclife.com/repos/git_index
Log | Files | Refs | README

commit 261fc195a50acc116a964dc0fdc3ac21e69f5f17
parent 44cf054f7d79cea61f4ef08cf2e1f6570a52ddce
Author: Zack Newman <zack@philomathiclife.com>
Date:   Wed,  7 Feb 2024 10:02:31 -0700

update priv_sep dep

Diffstat:
MCargo.toml | 6+++---
Msrc/args.rs | 14+++++++++-----
Msrc/main.rs | 25+++++++++++++------------
3 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -8,17 +8,17 @@ license = "MIT OR Apache-2.0" name = "git_index" readme = "README.md" repository = "https://git.philomathiclife.com/repos/git_index/" -version = "0.1.1" +version = "0.1.2" [[bin]] name = "git_index" path = "src/main.rs" [dependencies] -time = { version = "0.3.30", default-features = false, features = ["parsing"] } +time = { version = "0.3.34", default-features = false, features = ["parsing"] } [target.'cfg(target_os = "openbsd")'.dependencies] -priv_sep = { version = "0.8.1", default-features = false, features = ["openbsd"] } +priv_sep = { version = "1.0.0", default-features = false, features = ["openbsd"] } [badges] maintenance = { status = "actively-developed" } diff --git a/src/args.rs b/src/args.rs @@ -1,8 +1,12 @@ -use core::convert::AsRef; -use core::fmt::{self, Display, Formatter}; -use std::env::{self, Args}; -use std::error::Error; -use std::path::{Path, PathBuf}; +use core::{ + convert::AsRef, + fmt::{self, Display, Formatter}, +}; +use std::{ + env::{self, Args}, + error::Error, + path::{Path, PathBuf}, +}; /// Wrapper around an absolute [`PathBuf`] to a directory. #[derive(Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct AbsDirPath { diff --git a/src/main.rs b/src/main.rs @@ -22,7 +22,6 @@ clippy::min_ident_chars, clippy::missing_trait_methods, clippy::question_mark_used, - clippy::ref_patterns, clippy::single_call_fn )] extern crate alloc; @@ -32,19 +31,21 @@ use alloc::collections::BTreeMap; use args::{AbsDirPath, ArgsErr}; #[cfg(not(target_os = "openbsd"))] use core::convert::Infallible; -use core::fmt::{self, Display, Formatter}; -use core::str::{self, Utf8Error}; +use core::{ + fmt::{self, Display, Formatter}, + str::{self, Utf8Error}, +}; #[cfg(target_os = "openbsd")] use priv_sep::{Permissions, Promise, Promises, UnveilErr}; -use std::error; -use std::ffi::OsString; -use std::fs; -use std::io::{self, Error, Write}; -use std::path::Path; -use std::process::{Command, Stdio}; -use time::error::Parse; -use time::format_description::well_known::Iso8601; -use time::OffsetDateTime; +use std::{ + error, + ffi::OsString, + fs, + io::{self, Error, Write}, + path::Path, + process::{Command, Stdio}, +}; +use time::{error::Parse, format_description::well_known::Iso8601, OffsetDateTime}; /// `()` triggers lints when captured by `let`. /// This only relevant for the no-op functions. #[cfg(not(target_os = "openbsd"))]