From 807d1578c38f1c413bc3600bfc1009a357a61cd7 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 9 Apr 2023 13:37:36 +0200 Subject: [PATCH] redirection.rs: make redirection spec fields public like in C++ --- fish-rust/src/redirection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fish-rust/src/redirection.rs b/fish-rust/src/redirection.rs index 147d5f4f0..4b2852dfd 100644 --- a/fish-rust/src/redirection.rs +++ b/fish-rust/src/redirection.rs @@ -93,15 +93,15 @@ pub struct RedirectionSpec { /// The redirected fd, or -1 on overflow. /// In the common case of a pipe, this is 1 (STDOUT_FILENO). /// For example, in the case of "3>&1" this will be 3. - fd: RawFd, + pub fd: RawFd, /// The redirection mode. - mode: RedirectionMode, + pub mode: RedirectionMode, /// The target of the redirection. /// For example in "3>&1", this will be "1". /// In "< file.txt" this will be "file.txt". - target: WString, + pub target: WString, } impl RedirectionSpec {