@@ -63,15 +63,15 @@ impl SecurityContextBuilder {
63
63
}
64
64
65
65
pub fn se_linux_level ( & mut self , level : impl Into < String > ) -> & mut Self {
66
- let mut sc = self
66
+ let sc = self
67
67
. security_context
68
68
. se_linux_options
69
69
. get_or_insert_with ( SELinuxOptions :: default) ;
70
70
sc. level = Some ( level. into ( ) ) ;
71
71
self
72
72
}
73
73
pub fn se_linux_role ( & mut self , role : impl Into < String > ) -> & mut Self {
74
- let mut sc = self
74
+ let sc = self
75
75
. security_context
76
76
. se_linux_options
77
77
. get_or_insert_with ( SELinuxOptions :: default) ;
@@ -80,7 +80,7 @@ impl SecurityContextBuilder {
80
80
}
81
81
82
82
pub fn se_linux_type ( & mut self , type_ : impl Into < String > ) -> & mut Self {
83
- let mut sc = self
83
+ let sc = self
84
84
. security_context
85
85
. se_linux_options
86
86
. get_or_insert_with ( SELinuxOptions :: default) ;
@@ -89,7 +89,7 @@ impl SecurityContextBuilder {
89
89
}
90
90
91
91
pub fn se_linux_user ( & mut self , user : impl Into < String > ) -> & mut Self {
92
- let mut sc = self
92
+ let sc = self
93
93
. security_context
94
94
. se_linux_options
95
95
. get_or_insert_with ( SELinuxOptions :: default) ;
@@ -98,7 +98,7 @@ impl SecurityContextBuilder {
98
98
}
99
99
100
100
pub fn seccomp_profile_localhost ( & mut self , profile : impl Into < String > ) -> & mut Self {
101
- let mut sc = self
101
+ let sc = self
102
102
. security_context
103
103
. seccomp_profile
104
104
. get_or_insert_with ( SeccompProfile :: default) ;
@@ -107,7 +107,7 @@ impl SecurityContextBuilder {
107
107
}
108
108
109
109
pub fn seccomp_profile_type ( & mut self , type_ : impl Into < String > ) -> & mut Self {
110
- let mut sc = self
110
+ let sc = self
111
111
. security_context
112
112
. seccomp_profile
113
113
. get_or_insert_with ( SeccompProfile :: default) ;
@@ -116,7 +116,7 @@ impl SecurityContextBuilder {
116
116
}
117
117
118
118
pub fn win_credential_spec ( & mut self , spec : impl Into < String > ) -> & mut Self {
119
- let mut wo = self
119
+ let wo = self
120
120
. security_context
121
121
. windows_options
122
122
. get_or_insert_with ( WindowsSecurityContextOptions :: default) ;
@@ -125,7 +125,7 @@ impl SecurityContextBuilder {
125
125
}
126
126
127
127
pub fn win_credential_spec_name ( & mut self , name : impl Into < String > ) -> & mut Self {
128
- let mut wo = self
128
+ let wo = self
129
129
. security_context
130
130
. windows_options
131
131
. get_or_insert_with ( WindowsSecurityContextOptions :: default) ;
@@ -134,7 +134,7 @@ impl SecurityContextBuilder {
134
134
}
135
135
136
136
pub fn win_run_as_user_name ( & mut self , name : impl Into < String > ) -> & mut Self {
137
- let mut wo = self
137
+ let wo = self
138
138
. security_context
139
139
. windows_options
140
140
. get_or_insert_with ( WindowsSecurityContextOptions :: default) ;
0 commit comments