fix crate-docs and some lints
This commit is contained in:
@@ -73,7 +73,7 @@ pub fn get() -> clap::ArgMatches {
|
||||
get_arg_parser().get_matches()
|
||||
}
|
||||
|
||||
pub(crate) fn get_absolutized_file_paths(arg_match: &ArgMatches) -> Result<Vec<PathBuf>> {
|
||||
pub fn get_absolutized_file_paths(arg_match: &ArgMatches) -> Result<Vec<PathBuf>> {
|
||||
Ok(arg_match
|
||||
.get_many::<String>("files")
|
||||
.context("getting files from args")?
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/*!
|
||||
This library contains all logic that happens in `pacdef` under the hood.
|
||||
*/
|
||||
|
||||
#![warn(
|
||||
clippy::as_conversions,
|
||||
clippy::option_if_let_else,
|
||||
|
||||
@@ -4,7 +4,7 @@ use syn::DeriveInput;
|
||||
use syn::__private::TokenStream2;
|
||||
|
||||
pub fn action(input: TokenStream) -> TokenStream {
|
||||
let input = syn::parse::<DeriveInput>(input).unwrap();
|
||||
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
|
||||
|
||||
let name = &input.ident;
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/*!
|
||||
Procedural macros for `pacdef`.
|
||||
*/
|
||||
#![warn(
|
||||
clippy::as_conversions,
|
||||
clippy::option_if_let_else,
|
||||
|
||||
@@ -4,7 +4,7 @@ use syn::DeriveInput;
|
||||
use syn::__private::TokenStream2;
|
||||
|
||||
pub fn register(input: TokenStream) -> TokenStream {
|
||||
let input = syn::parse::<DeriveInput>(input).unwrap();
|
||||
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
|
||||
|
||||
let name = &input.ident;
|
||||
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
/*!
|
||||
Main program for `pacdef`. All internal logic happens in `pacdef_core`.
|
||||
*/
|
||||
|
||||
#![warn(
|
||||
clippy::as_conversions,
|
||||
clippy::option_if_let_else,
|
||||
clippy::redundant_pub_crate,
|
||||
clippy::unused_self,
|
||||
clippy::unwrap_used,
|
||||
clippy::use_debug,
|
||||
clippy::use_self,
|
||||
clippy::wildcard_dependencies,
|
||||
missing_docs
|
||||
)]
|
||||
use std::process::{ExitCode, Termination};
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
|
||||
Reference in New Issue
Block a user