From f77c7fd9e5c69a73c6438dd5220c58dfaa5369c2 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 29 Nov 2026 15:33:20 +0800 Subject: [PATCH] sftp: Fix docs for MAX_RESPONSE_LEN This broke rebasing #84 Fixes: ac01571563e7 ("sftp: add REMOVE, RENAME, MKDIR and RMDIR requests") --- sftp/src/proto.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/sftp/src/proto.rs b/sftp/src/proto.rs index c193f5db..f000107a 100644 --- a/sftp/src/proto.rs +++ b/sftp/src/proto.rs @@ -95,9 +95,6 @@ pub const MAX_NAME_ENTRY_SIZE: usize = 4 + MAX_PATH_LEN + 4 + MAX_ATTRS_LEN; /// and directory listings are streamed, never buffered whole. /// /// The largest piece is a [`NameEntry`], since it contains a full path. -/// [`SftpSink`](crate::sftpsink::SftpSink) always reserves -/// [`SFTP_FIELD_LEN_LENGTH`] bytes for a length prefix at the start of the -/// buffer, so that is included too. pub const MAX_RESPONSE_LEN: usize = SFTP_FIELD_LEN_LENGTH + MAX_NAME_ENTRY_SIZE; // TODO is utf8 enough, or does this need to be an opaque binstring?