aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/global_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/global_command.rs')
-rw-r--r--crates/shirabe/src/command/global_command.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/shirabe/src/command/global_command.rs b/crates/shirabe/src/command/global_command.rs
index 69cf48a..941315b 100644
--- a/crates/shirabe/src/command/global_command.rs
+++ b/crates/shirabe/src/command/global_command.rs
@@ -35,6 +35,12 @@ pub struct GlobalCommand {
base_command_data: BaseCommandData,
}
+impl Default for GlobalCommand {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl GlobalCommand {
pub fn new() -> Self {
let mut command = GlobalCommand {
@@ -116,7 +122,7 @@ impl GlobalCommand {
// TODO(phase-c): getApplication()->resetComposer() needs the shared shirabe Application
// handle (deferred with the Application shared-ownership work).
- Ok(StringInput::new(&new_input_str)?)
+ StringInput::new(&new_input_str)
}
}