From 47933e0873ee9a0eb23d2014e2c4fc143ad53198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sun, 18 Feb 2024 16:41:16 +0000 Subject: [PATCH] Minor fixes --- silver_platter/proposal.py | 1 - src/publish.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/silver_platter/proposal.py b/silver_platter/proposal.py index 218b49bc..d70b962f 100644 --- a/silver_platter/proposal.py +++ b/silver_platter/proposal.py @@ -19,7 +19,6 @@ import breezy.plugins.github # noqa: F401 import breezy.plugins.gitlab # noqa: F401 import breezy.plugins.launchpad # noqa: F401 -from breezy.branch import Branch from breezy.errors import PermissionDenied from breezy.forge import ( ForgeLoginRequired, diff --git a/src/publish.rs b/src/publish.rs index 168f4849..cc174038 100644 --- a/src/publish.rs +++ b/src/publish.rs @@ -96,7 +96,7 @@ fn test_push_result() { let td = tempfile::tempdir().unwrap(); let target_path = td.path().join("target"); let source_path = td.path().join("source"); - let target_url = url::Url::from_file_path(&target_path).unwrap(); + let target_url = url::Url::from_file_path(target_path).unwrap(); let target = create_branch_convenience(&target_url).unwrap(); let source = create_standalone_workingtree(&source_path, &ControlDirFormat::default()).unwrap(); let revid = source.commit("Some change", None, None, None).unwrap();