From ecc0656745552242762f173e48dd7f29b53680be Mon Sep 17 00:00:00 2001 From: limuy Date: Sat, 1 Jun 2024 15:23:58 +0800 Subject: [PATCH] format --- gdrust/src/fight_items.rs | 2 +- gdrust/src/fight_items/block.rs | 6 +++--- gdrust/src/lib.rs | 1 - gdrust/src/player.rs | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gdrust/src/fight_items.rs b/gdrust/src/fight_items.rs index d4a178a..fc9210d 100644 --- a/gdrust/src/fight_items.rs +++ b/gdrust/src/fight_items.rs @@ -1 +1 @@ -mod block; \ No newline at end of file +mod block; diff --git a/gdrust/src/fight_items/block.rs b/gdrust/src/fight_items/block.rs index bd4435f..b2fd232 100644 --- a/gdrust/src/fight_items/block.rs +++ b/gdrust/src/fight_items/block.rs @@ -1,10 +1,10 @@ +use godot::engine::{INode2D, Node2D}; use godot::prelude::*; -use godot::engine::{Node2D, INode2D}; #[derive(GodotClass)] #[class(base = Node2D)] struct BlockDrawer { - base: Base + base: Base, } #[godot_api] @@ -13,4 +13,4 @@ impl INode2D for BlockDrawer { // godot_print!("BlockDrawer created from Godot Rust"); Self { base } } -} \ No newline at end of file +} diff --git a/gdrust/src/lib.rs b/gdrust/src/lib.rs index 391fde6..4394415 100644 --- a/gdrust/src/lib.rs +++ b/gdrust/src/lib.rs @@ -7,4 +7,3 @@ struct GdExtension; #[gdextension()] unsafe impl ExtensionLibrary for GdExtension {} - diff --git a/gdrust/src/player.rs b/gdrust/src/player.rs index b82f271..7264818 100644 --- a/gdrust/src/player.rs +++ b/gdrust/src/player.rs @@ -1,5 +1,5 @@ -use godot::prelude::*; use godot::engine::{Area2D, IArea2D}; +use godot::prelude::*; #[derive(GodotClass)] #[class(base = Area2D)]