Merge pull request #2069 from rtfeldman/joshuawarner32/impl-app-header-formatting

Implement [more] app header formatting
This commit is contained in:
Joshua Warner 2021-11-25 07:24:06 -08:00 committed by GitHub
commit f4e29bd267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 322 additions and 137 deletions

View file

@ -1747,7 +1747,7 @@ fn update<'a>(
match header_extra {
App { to_platform } => {
debug_assert!(matches!(state.platform_path, PlatformPath::NotSpecified));
state.platform_path = PlatformPath::Valid(to_platform.clone());
state.platform_path = PlatformPath::Valid(to_platform);
}
PkgConfig { main_for_host, .. } => {
debug_assert!(matches!(state.platform_data, None));
@ -2632,7 +2632,7 @@ fn parse_header<'a>(
packages,
exposes: header.provides.items,
imports: header.imports.items,
to_platform: Some(header.to.value.clone()),
to_platform: Some(header.to.value),
};
let (module_id, app_module_header_msg) = send_header(