mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Delete no_kwargs! macro
This commit is contained in:
@@ -1,16 +1,3 @@
|
||||
#[macro_export]
|
||||
macro_rules! no_kwargs {
|
||||
( $vm: ident, $args:ident ) => {
|
||||
// Zero-arg case
|
||||
if $args.kwargs.len() != 0 {
|
||||
return Err($vm.new_type_error(format!(
|
||||
"Expected no keyword arguments (got: {})",
|
||||
$args.kwargs.len()
|
||||
)));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! py_module {
|
||||
( $vm:expr, $module_name:expr, { $($name:expr => $value:expr),* $(,)? }) => {{
|
||||
|
||||
Reference in New Issue
Block a user