Skip to content

Commit

Permalink
Removed one more reference to &mut PackageArchive
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijit Gadgil <[email protected]>
  • Loading branch information
agadgil-progress committed Jan 22, 2025
1 parent 621823d commit f57350d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .expeditor/scripts/verify/shared.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function Initialize-Environment {
$env:INCLUDE = "$(Get-Content "$vsDir\INCLUDE_DIRS");$(Get-Content "$winSdkDir\INCLUDE_DIRS")"
$env:PATH = New-PathString -StartingPath $env:PATH -Path (Get-Content "$vsDir\PATH")
$env:PATH = New-PathString -StartingPath $env:PATH -Path (Get-Content "$winSdkDir\PATH")
$env:VCINSTALLDIR = "$(Get-Content "$vsDir")"
}

function Get-NightlyToolchain {
Expand Down
2 changes: 1 addition & 1 deletion components/builder-api-client/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ impl BuilderAPIClient {
///
/// * Authorization token was not set on client
pub async fn put_package<'a>(&'a self,
pa: &'a mut PackageArchive,
pa: &'a PackageArchive,
token: &'a str,
force_upload: bool,
auto_build: BuildOnUpload,
Expand Down
8 changes: 4 additions & 4 deletions components/core/src/package/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ mod test {

#[test]
fn reading_artifact_metadata() {
let mut hart =
let hart =
PackageArchive::new(fixtures().join("happyhumans-possums-8.1.\
4-20160427165340-x86_64-linux.hart")).unwrap();
let ident = hart.ident().unwrap();
Expand Down Expand Up @@ -538,7 +538,7 @@ mod test {

#[test]
fn reading_artifact_deps() {
let mut hart =
let hart =
PackageArchive::new(fixtures().join("happyhumans-possums-8.1.\
4-20160427165340-x86_64-linux.hart")).unwrap();
let _ = hart.deps().unwrap();
Expand All @@ -547,7 +547,7 @@ mod test {

#[test]
fn reading_artifact_large_tdeps() {
let mut hart =
let hart =
PackageArchive::new(fixtures().join("unhappyhumans-possums-8.1.\
4-20160427165340-x86_64-linux.hart")).unwrap();
let tdeps = hart.tdeps().unwrap();
Expand All @@ -557,7 +557,7 @@ mod test {
#[test]
#[cfg(feature = "x86_64-linux")]
fn reading_artifact_target() {
let mut hart =
let hart =
PackageArchive::new(fixtures().join("unhappyhumans-possums-8.1.\
4-20160427165340-x86_64-linux.hart")).unwrap();
let target = hart.target().unwrap();
Expand Down

0 comments on commit f57350d

Please sign in to comment.