From 9e48c72efddcf482af5471dda65b3329dc4eec2c Mon Sep 17 00:00:00 2001 From: Naoki Ikeguchi Date: Tue, 14 Feb 2023 11:46:34 +0900 Subject: [PATCH 1/2] build: Upgrade Rust to v1.67.1 --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index bd07830..1c450cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ license = "MIT" homepage = "https://github.com/siketyan/ghr" repository = "https://github.com/siketyan/ghr.git" readme = "README.md" +rust-version = "1.67.1" edition = "2021" authors = [ "Naoki Ikeguchi ", From 6d78535ff57fbe1aa88333c7e19b245004d8bbf1 Mon Sep 17 00:00:00 2001 From: Naoki Ikeguchi Date: Tue, 14 Feb 2023 11:46:56 +0900 Subject: [PATCH 2/2] refactor: Fix clippy --- src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.rs b/src/path.rs index f094f7a..1f64529 100644 --- a/src/path.rs +++ b/src/path.rs @@ -39,7 +39,7 @@ impl<'a> Path<'a> { match (host, owner) { (false, true) => format!("{}/{}", self.owner, self.repo), (true, false) => format!("{}:{}", self.host, self.repo), - (false, false) => format!("{}", self.repo), + (false, false) => self.repo.to_string(), _ => format!("{}:{}/{}", self.host, self.owner, self.repo), } }