diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-06 17:03:42 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-06 17:03:42 +0000 |
| commit | b6970d0e260aa33bb1e22ae7df739470ecad19e0 (patch) | |
| tree | 6e9ab3d40f5c6e5373b6afd239f52f77bff41f2d /compiler/rustc_codegen_ssa/src | |
| parent | 504c4c40e9716fb47346d6e8a27389467763552a (diff) | |
Use `FnOnce` for `slice_owned` instead of `Fn`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs index c0f263d1478..3e3fcc08bd6 100644 --- a/compiler/rustc_codegen_ssa/src/back/metadata.rs +++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs @@ -37,7 +37,7 @@ pub struct DefaultMetadataLoader; fn load_metadata_with( path: &Path, - f: impl for<'a> Fn(&'a [u8]) -> Result<&'a [u8], String>, + f: impl for<'a> FnOnce(&'a [u8]) -> Result<&'a [u8], String>, ) -> Result<MetadataRef, String> { let file = File::open(path).map_err(|e| format!("failed to open file '{}': {}", path.display(), e))?; |
