Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jan 17, 2024
1 parent 654545b commit 4caac94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/elements/word.rs
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
//SPDX-FileCopyrightText: 2023 Ryuichi Ueda ryuichiueda@gmail.com
//SPDX-License-Identifier: BSD-3-Clause

use crate::{ShellCore, Feeder};
use crate::{Feeder, ShellCore};

#[derive(Debug)]
pub struct Word {
pub text: String,
}

impl Word {
pub fn get_args(&mut self) -> Vec<String> {
vec![self.text.clone()]
}

fn new() -> Word {
Word {
text: String::new(),
}
}

pub fn get_args(&mut self) -> Vec<String> {
vec![self.text.clone()]
}

pub fn parse(feeder: &mut Feeder, core: &mut ShellCore) -> Option<Word> {
let mut ans = Word::new();
let arg_len = feeder.scanner_word(core);
Expand Down

0 comments on commit 4caac94

Please sign in to comment.