Skip to content

Commit

Permalink
split: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhitkoff committed Nov 9, 2023
1 parent b0fa085 commit e7dd254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uu/split/src/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ fn custom_write_all<T: Write>(
///
/// For most files the size will be determined by either reading entire file content into a buffer
/// or by `len()` function of [`std::fs::metadata`].
/// In these cases the `buf` might end up with either partial or entire input content.
///
/// However, for some files which report filesystem metadata size that does not match
/// their actual content size, we will need to attempt to find the end of file
Expand All @@ -636,6 +635,8 @@ fn custom_write_all<T: Write>(
/// For STDIN stream - read into a buffer up to a limit

Check failure on line 635 in src/uu/split/src/split.rs

View workflow job for this annotation

GitHub Actions / Style/format (ubuntu-latest, feat_os_unix)

ERROR: `cargo fmt`: style violation (file:'src/uu/split/src/split.rs', line:635; use `cargo fmt -- "src/uu/split/src/split.rs"`)
/// If input stream does not EOF before that - return an error
/// (i.e. "infinite" input as in `cat /dev/zero | split ...`, `yes | split ...` etc.).
///
/// Note: The `buf` might end up with either partial or entire input content.
fn get_input_size<R>(
input: &String,
reader: &mut R,
Expand Down

0 comments on commit e7dd254

Please sign in to comment.