aboutsummaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-18 18:03:21 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-18 18:03:21 +0100
commit2c5adc8f166c6117ece353376b9071f5e30857b1 (patch)
tree1590c1277342734ee6f06b1a388c0fc63ecd8acf /tests/common
parent43b668531f060a2c0f950da96b363b2ea7cf4e06 (diff)
downloadaerogramme-2c5adc8f166c6117ece353376b9071f5e30857b1.tar.gz
aerogramme-2c5adc8f166c6117ece353376b9071f5e30857b1.zip
reformat code
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/fragments.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/common/fragments.rs b/tests/common/fragments.rs
index f9ad87e..29d5d10 100644
--- a/tests/common/fragments.rs
+++ b/tests/common/fragments.rs
@@ -286,7 +286,12 @@ pub fn noop_exists(imap: &mut TcpStream, must_exists: u32) -> Result<()> {
}
}
-pub fn fetch(imap: &mut TcpStream, selection: Selection, kind: FetchKind, modifier: FetchMod) -> Result<String> {
+pub fn fetch(
+ imap: &mut TcpStream,
+ selection: Selection,
+ kind: FetchKind,
+ modifier: FetchMod,
+) -> Result<String> {
let mut buffer: [u8; 65535] = [0; 65535];
let sel_str = match selection {
@@ -363,11 +368,11 @@ pub fn search(imap: &mut TcpStream, sk: SearchKind) -> Result<String> {
}
pub fn store(
- imap: &mut TcpStream,
- sel: Selection,
+ imap: &mut TcpStream,
+ sel: Selection,
flag: Flag,
action: StoreAction,
- modifier: StoreMod
+ modifier: StoreMod,
) -> Result<String> {
let mut buffer: [u8; 6000] = [0; 6000];