We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 830edfb commit bd285afCopy full SHA for bd285af
src/builder.rs
@@ -108,8 +108,8 @@ impl SecurityContextBuilder {
108
self
109
}
110
111
- pub fn proc_mount(&mut self, value: String) -> &mut Self {
112
- self.security_context.proc_mount = Some(value);
+ pub fn proc_mount(&mut self, value: impl Into<String>) -> &mut Self {
+ self.security_context.proc_mount = Some(value.into());
113
114
115
@@ -204,7 +204,7 @@ impl SecurityContextBuilder {
204
205
206
207
- pub fn win_run_as_user_name(&mut self, name: &str) -> &mut Self {
+ pub fn win_run_as_user_name(&mut self, name: impl Into<String>) -> &mut Self {
208
let mut wo = self
209
.security_context
210
.windows_options
0 commit comments