Skip to content

Commit

Permalink
fix(edit): inline docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Dec 12, 2024
1 parent 6a9d21f commit a951311
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pueue/src/client/commands/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl Editable for EditableTask {
fn read_temp_dir(&mut self, temp_dir: &Path) -> Result<()> {
let task_dir = temp_dir.join(self.id.to_string());

// Create command file
// Read command file
let cmd_path = task_dir.join("command");
let command = read_to_string(&cmd_path)
.map_err(|err| Error::IoPathError(cmd_path.clone(), "reading command file", err))?;
Expand All @@ -183,7 +183,7 @@ impl Editable for EditableTask {
}
self.command = command.trim().to_string();

// Create cwd file
// Read cwd file
let cwd_path = task_dir.join("path");
let cwd = read_to_string(&cwd_path)
.map_err(|err| Error::IoPathError(cwd_path.clone(), "reading path file", err))?;
Expand All @@ -203,7 +203,7 @@ impl Editable for EditableTask {
}
self.path = path;

// Create label file. If file is empty, set the label to `None`
// Read label file. If file is empty, set the label to `None`
let label_path = task_dir.join("label");
let label = read_to_string(&label_path)
.map_err(|err| Error::IoPathError(label_path.clone(), "reading label file", err))?;
Expand All @@ -213,7 +213,7 @@ impl Editable for EditableTask {
Some(label.trim().to_string())
};

// Create priority file. If file is empty, set the priority to `None`
// Read priority file. If file is empty, set the priority to `None`
let priority_path = task_dir.join("priority");
let priority = read_to_string(&priority_path).map_err(|err| {
Error::IoPathError(priority_path.clone(), "reading priority file", err)
Expand Down

0 comments on commit a951311

Please sign in to comment.