Skip to content

Commit 7a312b8

Browse files
committed
Fix build error & warning
1 parent 4872c13 commit 7a312b8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

contrib/packaging/bootupd.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Summary: Bootloader updater
99

1010
License: Apache-2.0
1111
URL: https://github.com/coreos/bootupd
12-
Source0: %{crates_source}
12+
Source0: %{url}/releases/download/v%{version}/bootupd-%{version}.crate
1313
Source1: %{url}/releases/download/v%{version}/bootupd-%{version}-vendor.tar.zstd
1414
%if 0%{?fedora} || 0%{?rhel} >= 10
1515
ExcludeArch: %{ix86}

xtask/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ fn git_timestamp(sh: &Shell) -> Result<String> {
8989
struct Package {
9090
version: String,
9191
srcpath: Utf8PathBuf,
92-
vendorpath: Utf8PathBuf,
9392
}
9493

9594
/// Return the timestamp of the latest git commit in seconds since the Unix epoch.
@@ -176,7 +175,6 @@ fn impl_srpm(sh: &Shell) -> Result<Utf8PathBuf> {
176175
let pkg = impl_package(sh)?;
177176
vendor(sh)?;
178177
let td = tempfile::tempdir_in("target").context("Allocating tmpdir")?;
179-
let td = td.into_path();
180178
let td: &Utf8Path = td.as_path().try_into().unwrap();
181179
let srcpath = td.join(pkg.srcpath.file_name().unwrap());
182180
std::fs::rename(pkg.srcpath, srcpath)?;

0 commit comments

Comments
 (0)