Skip to content

Commit 5792312

Browse files
committed
cleaning
1 parent 321417b commit 5792312

File tree

824 files changed

+9109
-8737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

824 files changed

+9109
-8737
lines changed
File renamed without changes.

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,15 +631,14 @@ version = "1.41.0"
631631
features = []
632632
default-features = false
633633

634+
# Note: anyhow and thiserror are included here ONLY for bootstrap builds
635+
# of test_tools to avoid cyclic dependencies with error_tools.
636+
# All other crates MUST use error_tools exclusively for error handling.
634637
[workspace.dependencies.anyhow]
635638
version = "~1.0"
636-
# features = []
637-
# default-features = false
638639

639640
[workspace.dependencies.thiserror]
640641
version = "~1.0"
641-
# features = []
642-
# default-features = false
643642

644643
[workspace.dependencies.pretty_assertions]
645644
version = "~1.4.0"

module/alias/cargo_will/src/bin/cargo-will.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#[ allow( unused_imports ) ]
77
use::willbe::*;
88

9-
fn main() -> Result< (), wtools::error::untyped::Error >
9+
fn main() -> Result< (), wtools::error::untyped::Error >
1010
{
1111
let args = std::env::args().skip( 1 ).collect();
1212
Ok( willbe::run( args )? )

module/alias/cargo_will/src/bin/will.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#[ allow( unused_imports ) ]
1111
use::willbe::*;
1212

13-
fn main() -> Result< (), wtools::error::untyped::Error >
13+
fn main() -> Result< (), wtools::error::untyped::Error >
1414
{
1515
Ok( willbe::run( std::env::args().collect() )? )
1616
}

module/alias/cargo_will/src/bin/willbe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#[ allow( unused_imports ) ]
77
use::willbe::*;
88

9-
fn main() -> Result< (), error::untyped::Error >
9+
fn main() -> Result< (), error::untyped::Error >
1010
{
1111
Ok( willbe::run( std::env::args().collect() )? )
1212
}

module/alias/proc_macro_tools/examples/proc_macro_tools_trivial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn main()
77
{
88
use proc_macro_tools::{ typ, qt };
99

10-
let code = qt!( core::option::Option< i8, i16, i32, i64 > );
10+
let code = qt!( core::option::Option< i8, i16, i32, i64 > );
1111
let tree_type = syn::parse2::< syn::Type >( code ).unwrap();
1212
let got = typ::type_parameters( &tree_type, &0..=2 );
1313
got.iter().for_each( | e | println!( "{}", qt!( #e ) ) );

module/alias/werror/examples/werror_tools_trivial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main()
1414
}
1515

1616
#[ cfg( not( feature = "no_std" ) ) ]
17-
fn f1() -> werror::Result< () >
17+
fn f1() -> werror::Result< () >
1818
{
1919
let _read = std::fs::read_to_string( "Cargo.toml" )?;
2020
Err( werror::BasicError::new( "Some error" ).into() )

module/alias/willbe2/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#[allow(unused_imports)]
1010
use ::willbe2::*;
1111

12-
// fn main() -> Result< (), wtools::error::untyped::Error >
12+
// fn main() -> Result< (), wtools::error::untyped::Error >
1313
// {
1414
// Ok( willbe::run()? )
1515
// }

module/alias/wstring_tools/examples/wstring_toolst_trivial_sample.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ fn main() {
88
/* delimeter exists */
99
let src = "abc def";
1010
let iter = string::split().src(src).delimeter(" ").stripping(false).perform();
11-
let iterated = iter.map(String::from).collect::<Vec<_>>();
11+
let iterated = iter.map(String::from).collect::<Vec< _ >>();
1212
assert_eq!(iterated, vec!["abc", " ", "def"]);
1313

1414
/* delimeter not exists */
1515
let src = "abc def";
1616
let iter = string::split().src(src).delimeter("g").perform();
17-
let iterated = iter.map(String::from).collect::<Vec<_>>();
17+
let iterated = iter.map(String::from).collect::<Vec< _ >>();
1818
assert_eq!(iterated, vec!["abc def"]);
1919
}
2020
}

module/alias/wtest/src/test/commands/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use super::*;
33
///
44
/// Form CA commands grammar.
55
///
6-
pub fn grammar_form() -> Vec< wca::Command >
6+
pub fn grammar_form() -> Vec< wca::Command >
77
{
88
vec!
99
[
@@ -15,7 +15,7 @@ pub fn grammar_form() -> Vec< wca::Command >
1515
///
1616
/// Form CA commands executor.
1717
///
18-
pub fn executor_form() -> std::collections::HashMap< String, wca::Routine >
18+
pub fn executor_form() -> std::collections::HashMap< String, wca::Routine >
1919
{
2020
std::collections::HashMap::from_iter
2121
([

0 commit comments

Comments
 (0)