fix crate-docs and some lints

This commit is contained in:
steven-omaha
2023-02-14 15:13:04 +01:00
parent c490c660b4
commit bcf5093c7e
6 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -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")?
+4
View File
@@ -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,
+1 -1
View File
@@ -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;
+3
View File
@@ -1,3 +1,6 @@
/*!
Procedural macros for `pacdef`.
*/
#![warn(
clippy::as_conversions,
clippy::option_if_let_else,
+1 -1
View File
@@ -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;
+15
View File
@@ -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};