Skip to content

Commit e9985cf

Browse files
committed
Directly import symbols rather than using prelude
1 parent 0ee51e8 commit e9985cf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

itest/rust/src/register_tests/keyword_parameters_test.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
66
*/
77

8+
use godot::builtin::{GString, PackedStringArray};
89
use godot::classes::IEditorExportPlugin;
9-
use godot::prelude::*;
10+
use godot::register::{godot_api, GodotClass};
1011

1112
#[derive(GodotClass)]
1213
#[class(base=EditorExportPlugin, init)]
@@ -15,9 +16,6 @@ struct KeywordParameterEditorExportPlugin;
1516
#[godot_api]
1617
impl IEditorExportPlugin for KeywordParameterEditorExportPlugin {
1718
// This test requires that the second non-self parameter on `export_file`
18-
// remain named `_type`. Additionally tell rustfmt to skip this code and
19-
// allow all clippy lints.
20-
#[allow(clippy::all)]
21-
#[rustfmt::skip]
22-
fn export_file(&mut self, _path: GString, _type: GString, _features: PackedStringArray) { }
19+
// remain named `_type`.
20+
fn export_file(&mut self, _path: GString, _type: GString, _features: PackedStringArray) {}
2321
}

0 commit comments

Comments
 (0)