Skip to content

Commit edb0cbd

Browse files
committed
wip
1 parent e63e3b4 commit edb0cbd

File tree

13 files changed

+28
-27
lines changed

13 files changed

+28
-27
lines changed

module/core/former_meta/src/derive_former.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ impl ToTokens for FormerDefinitionTypesGenerics<'_> {
4343
/// If the `debug` attribute is specified, it prints an example of a custom mutator implementation.
4444
#[allow(clippy::format_in_format_args, clippy::unnecessary_wraps)]
4545
pub fn mutator(
46-
item: &syn::Ident,
47-
original_input: &macro_tools::proc_macro2::TokenStream,
46+
_item: &syn::Ident,
47+
_original_input: &macro_tools::proc_macro2::TokenStream,
4848
mutator: &AttributeMutator,
49-
former_definition_types: &syn::Ident,
49+
_former_definition_types: &syn::Ident,
5050
generics: &FormerDefinitionTypesGenerics<'_>,
5151
former_definition_types_ref: &proc_macro2::TokenStream,
5252
) -> Result<TokenStream> {
5353
let impl_generics = generics.impl_generics;
54-
let ty_generics = generics.ty_generics;
54+
let _ty_generics = generics.ty_generics;
5555
let where_clause = generics.where_clause;
5656

5757
let former_mutator_code = if mutator.custom.value(false) {

module/move/unilang/readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ Control debug output levels for cleaner CLI experiences:
195195
use unilang::prelude::*;
196196
use unilang_parser::UnilangParserOptions;
197197

198-
// Set verbosity programmatically
198+
// Create registry and set verbosity programmatically
199+
let registry = CommandRegistry::new();
199200
let mut parser_options = UnilangParserOptions::default();
200201
parser_options.verbosity = 0; // 0 = quiet, 1 = normal, 2 = debug
201202

module/move/unilang/tests/compile_time_debug_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ fn test_documentation_of_debug_output_requirement()
160160
// should be emitted by default
161161

162162
// These are the verbosity levels as documented
163-
const VERBOSITY_QUIET: u8 = 0; // No debug output
163+
const _VERBOSITY_QUIET: u8 = 0; // No debug output
164164
const VERBOSITY_NORMAL: u8 = 1; // Default, no debug output
165-
const VERBOSITY_DEBUG: u8 = 2; // Full debug output
165+
const _VERBOSITY_DEBUG: u8 = 2; // Full debug output
166166

167167
// Verify that the default verbosity level produces no debug output
168168
assert_eq!(VERBOSITY_NORMAL, 1, "Default verbosity should be 1 (normal)");

module/move/unilang/tests/verbosity_control_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn test_pipeline_with_custom_verbosity()
6868
let mut quiet_options = UnilangParserOptions::default();
6969
quiet_options.verbosity = 0;
7070

71-
let pipeline = Pipeline::with_parser_options( registry, quiet_options );
71+
let _pipeline = Pipeline::with_parser_options( registry, quiet_options );
7272

7373
// The pipeline should be created successfully with custom options
7474
// In a real implementation, this would suppress debug output

module/move/willbe/src/action/main_header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ mod private
7676
writeln!( f, "File not found or contains non-UTF-8 characters." )?;
7777
}
7878
}
79-
Ok( () )
79+
std::fmt::Result::Ok( () )
8080
}
8181
}
8282

module/move/willbe/src/action/publish.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mod private
2929
if self.packages.is_empty()
3030
{
3131
write!( f, "Nothing to publish" )?;
32-
return Ok( () );
32+
return std::fmt::Result::Ok( () );
3333
}
3434

3535
writeln!( f, "Actions :" )?;
@@ -102,7 +102,7 @@ mod private
102102
}
103103
}
104104

105-
Ok( () )
105+
std::fmt::Result::Ok( () )
106106
}
107107
}
108108

module/move/willbe/src/action/publish_diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mod private
9494
}
9595
write!( f, "{diff}" )?;
9696

97-
Ok( () )
97+
std::fmt::Result::Ok( () )
9898
}
9999
}
100100

module/move/willbe/src/entity/files/source_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl AsCode for SourceFile
244244
{
245245
fn as_code( &self ) -> std::io::Result< Cow< '_, str > >
246246
{
247-
Ok( Cow::Owned( std::fs::read_to_string( self.as_ref() )? ) )
247+
std::io::Result::Ok( Cow::Owned( std::fs::read_to_string( self.as_ref() )? ) )
248248
}
249249
}
250250

module/move/willbe/src/entity/package.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ mod private
7676
return Err( PackageError::NotAPackage );
7777
}
7878

79-
Ok( Self::Manifest( Box::new( package ) ) ) // fix clippy
79+
Result::Ok( Self::Manifest( Box::new( package ) ) ) // fix clippy
8080
}
8181
}
8282

@@ -92,7 +92,7 @@ mod private
9292
return Err( PackageError::NotAPackage );
9393
}
9494

95-
Ok( Self::Manifest( Box::new( package ) ) ) // fix clippy
95+
Result::Ok( Self::Manifest( Box::new( package ) ) ) // fix clippy
9696
}
9797
}
9898

@@ -107,7 +107,7 @@ mod private
107107
return Err( PackageError::NotAPackage );
108108
}
109109

110-
Ok( Self::Manifest( Box::new( value ) ) ) // fix clippy
110+
Result::Ok( Self::Manifest( Box::new( value ) ) ) // fix clippy
111111
}
112112
}
113113

@@ -163,11 +163,11 @@ mod private
163163
let data = &package.data;
164164

165165
// Unwrap safely because of the `Package` type guarantee
166-
Ok( data[ "package" ][ "version" ].as_str().unwrap().to_string() )
166+
Result::Ok( data[ "package" ][ "version" ].as_str().unwrap().to_string() )
167167
}
168168
Self::WorkspacePackageRef( package ) =>
169169
{
170-
Ok( package.version().to_string() )
170+
Result::Ok( package.version().to_string() )
171171
}
172172
}
173173
}
@@ -255,11 +255,11 @@ mod private
255255
{
256256
Ok( archive ) => archive,
257257
// qqq : fix. we don't have to know about the http status code
258-
Err( ureq::Error::Status( 403, _ ) ) => return Ok( true ),
258+
Err( ureq::Error::Status( 403, _ ) ) => return Result::Ok( true ),
259259
_ => return Err( PackageError::LoadRemotePackage ),
260260
};
261261

262-
Ok( diff::crate_diff( &local_package, &remote_package ).exclude( diff::PUBLISH_IGNORE_LIST ).has_changes() )
262+
Result::Ok( diff::crate_diff( &local_package, &remote_package ).exclude( diff::PUBLISH_IGNORE_LIST ).has_changes() )
263263
}
264264

265265
}

module/move/willbe/src/entity/packed_crate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mod private
3939
{
4040
let buf = format!( "package/{name}-{version}.crate" );
4141
let local_package_path = target_dir.join( buf );
42-
Ok( local_package_path )
42+
error::untyped::Result::Ok( local_package_path )
4343

4444
}
4545

@@ -72,7 +72,7 @@ mod private
7272
.take( u64::MAX )
7373
.read_to_end( &mut bytes )?;
7474

75-
Ok( bytes )
75+
error::untyped::Result::Ok( bytes )
7676
}
7777

7878
}

0 commit comments

Comments
 (0)