Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion module/alias/willbe2/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#[ allow( unused_imports ) ]
use ::willbe2::*;

// fn main() -> Result< (), wtools::error::untyped::Error >
// fn main() -> Result< (), wtools::error::untyped::Error >
// {
// Ok( willbe::run()? )
// }
Expand Down
2 changes: 1 addition & 1 deletion module/alias/wtest/src/test/commands/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl< 'a > SmokeModuleTest< 'a >
self
}

fn form( &mut self ) -> Result< (), &'static str >
fn form( &mut self ) -> Result< (), &'static str >
{
std ::fs ::create_dir( &self.test_path ).unwrap();

Expand Down
2 changes: 1 addition & 1 deletion module/core/asbytes/src/into_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod private
pub use bytemuck :: { Pod };

/// Trait for consuming data into an owned byte vector.
/// This trait is for types that can be meaningfully converted into a `Vec< u8 >`
/// This trait is for types that can be meaningfully converted into a `Vec< u8 >`
/// by consuming the original value.
pub trait IntoBytes {
/// Consumes the value and returns its byte representation as an owned `Vec< u8 >`.
Expand Down
2 changes: 1 addition & 1 deletion module/core/component_model_types/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub trait Assign< T, IntoT >
/// }
/// }
///
/// let mut opt_struct: Option< MyStruct > = None;
/// let mut opt_struct: Option< MyStruct > = None;
/// opt_struct.option_assign( MyStruct { name: "New Name".to_string() } );
/// assert_eq!( opt_struct.unwrap().name, "New Name" );
/// ```
Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/as_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ mod private
}

// impl< Row > IntoAsTable
// for Vec< Row >
// for Vec< Row >
// where
// Row: Cells< Self ::CellKey >,
// // CellKey: table ::CellKey + ?Sized,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Hash for TestObjectWithoutImpl
impl PartialOrd for TestObjectWithoutImpl
{

fn partial_cmp( &self, other: &Self ) -> Option< Ordering >
fn partial_cmp( &self, other: &Self ) -> Option< Ordering >
{
Some( self.cmp( other ) )
}
Expand All @@ -116,7 +116,7 @@ impl Ord for TestObjectWithoutImpl
}

/// Generate a dynamic array of test objects.
pub fn test_objects_gen() -> Vec< TestObjectWithoutImpl >
pub fn test_objects_gen() -> Vec< TestObjectWithoutImpl >
{

vec!
Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/text_wrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mod private
/// too literally. That is why `wrap_width` is introduced, and additional spaces to the
/// right side should be included by the output formatter.
#[ derive( Debug ) ]
pub struct WrappedCell< 'data >
pub struct WrappedCell< 'data >
{
/// Width of the cell. In calculations use this width instead of slice length in order
/// to properly center the text. See example in the doc string of the parent struct.
Expand Down
4 changes: 2 additions & 2 deletions module/core/former_meta/src/derive_former/struct_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl ItemAttributes
/// < T: ` ::core ::default ::Default` >
///
/// ## `perform_generics` :
/// Vec< T >
/// Vec< T >
///
#[ allow( clippy ::unnecessary_wraps ) ]
pub fn performer( &self ) -> Result< (TokenStream, TokenStream, TokenStream) >
Expand Down Expand Up @@ -611,7 +611,7 @@ impl syn ::parse ::Parse for ItemAttributes
///
/// Attribute to hold information about method to call after form.
///
/// `#[ perform( fn after1< 'a >() -> Option< &'a str > ) ]`
/// `#[ perform( fn after1< 'a >() -> Option< &'a str > ) ]`
///
#[ derive( Debug ) ]
pub struct AttributePerform
Expand Down
2 changes: 1 addition & 1 deletion module/core/fs_tools/src/fs/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod private
// }
// }
//
// pub fn clean( &self ) -> Result< (), &'static str >
// pub fn clean( &self ) -> Result< (), &'static str >
// {
// let result = std ::fs ::remove_dir_all( &self.test_path );
// result.or_else( | err | format!( "Cannot remove temporary directory {}.", &self.test_path.display() ) );
Expand Down
4 changes: 2 additions & 2 deletions module/core/macro_tools/src/attr_prop/boolean_optional.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//!
//! A generic optional boolean attribute property: `Option< bool >`.
//! A generic optional boolean attribute property: `Option< bool >`.
//! Defaults to `false`.
//!
use core ::marker ::PhantomData;
Expand All @@ -12,7 +12,7 @@ use components ::Assign;
#[ derive( Debug, Default, Clone, Copy ) ]
pub struct AttributePropertyOptionalBooleanMarker;

/// A generic optional boolean attribute property: `Option< bool >`.
/// A generic optional boolean attribute property: `Option< bool >`.
/// Defaults to `false`.
#[ derive( Debug, Default, Clone, Copy ) ]
pub struct AttributePropertyOptionalBoolean< Marker = AttributePropertyOptionalBooleanMarker >(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! A generic `Option< bool >` attribute property which consists of only keyword.
//! A generic `Option< bool >` attribute property which consists of only keyword.
//! Defaults to `None`.
//!
//! This property can have three states: `None`, `Some( true )`, or `Some( false )`.
Expand Down
2 changes: 1 addition & 1 deletion module/core/macro_tools/src/quantifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ mod private
}
}

// impl< T > From< Many< T > > for Vec< T >
// impl< T > From< Many< T > > for Vec< T >
// where
// T: Element,
// {
Expand Down
4 changes: 4 additions & 0 deletions module/core/macro_tools/tests/inc/generic_params_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ use the_module ::parse_quote;
// | TC014 | Test decomposing mixed generic types | `decompose_mixed_generics_types` |

//
// | TC011 | Test decomposing generics with lifetime parameters only | `decompose_generics_with_lifetime_parameters_only` |
// | TC012 | Test decomposing generics with constants only | `decompose_generics_with_constants_only` |
// | TC013 | Test decomposing generics with default values | `decompose_generics_with_default_values` |
// | TC014 | Test decomposing mixed generic types | `decompose_mixed_generics_types` |

#[ test ]
fn generics_with_where()
Expand Down
3 changes: 2 additions & 1 deletion module/core/macro_tools/tests/inc/typ_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use the_module ::qt;
// | TC011 | Test type parameter extraction with various range patterns | `type_parameters_basic` |

//
// | TC011 | Test type parameter extraction with various range patterns | `type_parameters_basic` |

#[ test ]
fn is_optional_with_option_type()
Expand Down Expand Up @@ -119,7 +120,7 @@ fn parameter_first_with_single_generic()
use syn :: { parse_str, Type };
use the_module ::typ ::parameter_first;

let type_string = "Vec< i32 >";
let type_string = "Vec< i32 >";
let parsed_type: Type = parse_str(type_string).expect("Type should parse correctly");

let first_param = parameter_first(&parsed_type).expect("Expected to extract the first generic parameter");
Expand Down
2 changes: 2 additions & 0 deletions module/core/meta_tools/tests/inc/indents_concat_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use super :: *;

//

//

tests_impls!
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/process_tools/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mod private
// exec_path: &str,
// current_path: impl Into< PathBuf >,
// )
// -> Result< Report, Report >
// -> Result< Report, Report >
// {
// let current_path = current_path.into();
// let ( program, args ) =
Expand Down
2 changes: 1 addition & 1 deletion module/core/reflect_tools/src/reflect/entity_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub mod private
}
}

impl< T > Entity for CollectionDescriptor< Vec< T > >
impl< T > Entity for CollectionDescriptor< Vec< T > >
where
T: 'static + Instance,
{
Expand Down
6 changes: 3 additions & 3 deletions module/core/reflect_tools/src/reflect/fields/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate :: *;
use std ::borrow ::Cow;
use collection_tools ::Vec;

impl< V, Borrowed > Fields< usize, &'_ Borrowed > for Vec< V >
impl< V, Borrowed > Fields< usize, &'_ Borrowed > for Vec< V >
where
Borrowed: std ::borrow ::ToOwned + 'static + ?Sized,
// Borrowed: ?Sized + 'static,
Expand All @@ -26,7 +26,7 @@ where

}

impl< V, Borrowed > Fields< usize, Option< Cow< '_, Borrowed > > > for Vec< V >
impl< V, Borrowed > Fields< usize, Option< Cow< '_, Borrowed > > > for Vec< V >
where
Borrowed: std ::borrow ::ToOwned + 'static + ?Sized,
// Borrowed: ?Sized + 'static,
Expand All @@ -47,7 +47,7 @@ where

}

impl< V, Borrowed, Marker > Fields< usize, OptionalCow< '_, Borrowed, Marker > > for Vec< V >
impl< V, Borrowed, Marker > Fields< usize, OptionalCow< '_, Borrowed, Marker > > for Vec< V >
where
Borrowed: std ::borrow ::ToOwned + 'static + ?Sized,
// Borrowed: ?Sized + 'static,
Expand Down
10 changes: 10 additions & 0 deletions module/core/strs_tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ harness = false
path = "benches/simple_specialized_benchmark.rs"
required-features = ["string_split", "specialized_algorithms"]

[[bench]]
name = "zero_copy_comparison"
harness = false
path = "benchmarks/zero_copy_comparison.rs"

[[bench]]
name = "compile_time_optimization_benchmark"
harness = false
path = "benchmarks/compile_time_optimization_benchmark.rs"

[[bin]]
name = "simd_test"
required-features = ["simd"]
Expand Down
Loading