-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2023-2024. James Draycott <[email protected]> | ||
* Copyright (C) 2023-2024. James Draycott [email protected] | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -10,29 +10,30 @@ | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with this program. | ||
* If not, see <https://www.gnu.org/licenses/>. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see https://www.gnu.org/licenses/. | ||
*/ | ||
|
||
#![feature(lazy_cell)] | ||
#![feature(const_for)] | ||
#![feature(const_option)] | ||
#![feature(auto_traits)] | ||
#![feature(negative_impls)] | ||
#![feature(associated_type_defaults)] | ||
#![feature(trait_alias)] | ||
#![feature(trivial_bounds)] | ||
#![feature(stmt_expr_attributes)] | ||
#![feature(async_closure)] | ||
#![feature(auto_traits)] | ||
#![feature(cfg_match)] | ||
#![feature(const_for)] | ||
#![feature(const_format_args)] | ||
#![feature(const_option)] | ||
#![feature(core_intrinsics)] | ||
#![feature(fn_traits)] | ||
#![feature(impl_trait_in_assoc_type)] | ||
#![feature(type_alias_impl_trait)] | ||
#![feature(lazy_cell)] | ||
#![feature(let_chains)] | ||
#![feature(try_trait_v2)] | ||
#![feature(core_intrinsics)] | ||
#![feature(negative_impls)] | ||
#![feature(result_flattening)] | ||
#![feature(async_closure)] | ||
#![feature(fn_traits)] | ||
#![feature(stmt_expr_attributes)] | ||
#![feature(trait_alias)] | ||
#![feature(trivial_bounds)] | ||
#![feature(try_trait_v2)] | ||
#![feature(type_alias_impl_trait)] | ||
#![allow(async_fn_in_trait)] | ||
|
||
pub mod cli; | ||
pub mod fs; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
/* | ||
* Copyright (C) 2023 James Draycott <[email protected]> | ||
* Copyright (C) 2024. James Draycott [email protected] | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 3. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* along with this program. If not, see https://www.gnu.org/licenses/. | ||
*/ | ||
|
||
use proc_macro2::{Ident, TokenStream}; | ||
|
@@ -27,7 +27,7 @@ pub fn common_fields(input: DeriveInput) -> TokenStream { | |
ref other => return crate::error_input::<DataEnum, _>(input.span(), other), | ||
}; | ||
|
||
// Extract the common field names and types from the enum variants | ||
// Extract the common field names and types from the enum variants. | ||
if variants.is_empty() { | ||
return crate::error(input.span(), "Enum has no variants"); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2023-2024. James Draycott <[email protected]> | ||
* Copyright (C) 2023-2024. James Draycott [email protected] | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -10,8 +10,8 @@ | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with this program. | ||
* If not, see <https://www.gnu.org/licenses/>. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see https://www.gnu.org/licenses/. | ||
*/ | ||
|
||
#![feature(proc_macro_diagnostic)] | ||
|
@@ -27,7 +27,6 @@ use proc_macro::TokenStream; | |
use proc_macro2::TokenStream as TokenStream2; | ||
use quote::quote; | ||
use std::any::{type_name, type_name_of_val}; | ||
use syn::parse::Parser; | ||
use syn::spanned::Spanned; | ||
use syn::{parse_macro_input, Data, DeriveInput, Ident, Path, TypePath}; | ||
|
||
|