File tree 1 file changed +4
-4
lines changed
compiler/rustc_error_messages/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,8 @@ impl From<Vec<FluentError>> for TranslationBundleError {
107
107
/// (overriding any conflicting messages).
108
108
#[ instrument( level = "trace" ) ]
109
109
pub fn fluent_bundle (
110
- mut user_provided_sysroot : PathBuf ,
111
- mut sysroot_candidates : Vec < PathBuf > ,
110
+ user_provided_sysroot : PathBuf ,
111
+ sysroot_candidates : Vec < PathBuf > ,
112
112
requested_locale : Option < LanguageIdentifier > ,
113
113
additional_ftl_path : Option < & Path > ,
114
114
with_directionality_markers : bool ,
@@ -142,8 +142,8 @@ pub fn fluent_bundle(
142
142
// If the user requests the default locale then don't try to load anything.
143
143
if let Some ( requested_locale) = requested_locale {
144
144
let mut found_resources = false ;
145
- for sysroot in
146
- Some ( & mut user_provided_sysroot) . into_iter ( ) . chain ( sysroot_candidates. iter_mut ( ) )
145
+ for mut sysroot in
146
+ Some ( user_provided_sysroot) . into_iter ( ) . chain ( sysroot_candidates. into_iter ( ) )
147
147
{
148
148
sysroot. push ( "share" ) ;
149
149
sysroot. push ( "locale" ) ;
You can’t perform that action at this time.
0 commit comments