huskies: merge 927
This commit is contained in:
@@ -9,6 +9,7 @@ use super::super::{
|
||||
};
|
||||
|
||||
/// Toggle an acceptance criterion checkbox (`- [ ]` → `- [x]`) by its 0-based index among unchecked items.
|
||||
#[allow(clippy::string_slice)] // indent_len = line.len() - trimmed.len(); trim() returns a sub-slice → valid boundary
|
||||
pub fn check_criterion_in_file(
|
||||
project_root: &Path,
|
||||
story_id: &str,
|
||||
@@ -107,6 +108,7 @@ pub fn remove_criterion_from_file(
|
||||
///
|
||||
/// Finds the criterion at `criterion_index` (0-based, counting all criteria regardless
|
||||
/// of checked state) and replaces its text with `new_text`.
|
||||
#[allow(clippy::string_slice)] // indent_len = line.len() - trimmed.len(); trim() returns a sub-slice → valid boundary
|
||||
pub fn edit_criterion_in_file(
|
||||
project_root: &Path,
|
||||
story_id: &str,
|
||||
|
||||
Reference in New Issue
Block a user