From f29d7a2b1831fbf6e7091a5ea070e150d7063c48 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 29 Jul 2020 01:50:25 +0200 Subject: Rename crate to 'github-suggestion' Didn't like the old name. Wanted to make the GitHub reference more explicit. I remember it as "suggestion", since that's the name of the GitHub feature, so "suggested" was confusing. The final "patch" seemed redundant or unnecessary. --- Cargo.lock | 30 +++++++++++++++--------------- Cargo.toml | 2 +- src/bin/git-sugapply.rs | 2 +- src/bin/git-sugpatch.rs | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90162ca..a57adc0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -237,21 +237,6 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724" -[[package]] -name = "git-suggested-patch" -version = "0.0.1" -dependencies = [ - "git2", - "github-rs", - "regex", - "serde", - "serde_json", - "tempfile", - "thiserror", - "unidiff", - "url", -] - [[package]] name = "git2" version = "0.13.8" @@ -282,6 +267,21 @@ dependencies = [ "tokio-core", ] +[[package]] +name = "github-suggestion" +version = "0.0.1" +dependencies = [ + "git2", + "github-rs", + "regex", + "serde", + "serde_json", + "tempfile", + "thiserror", + "unidiff", + "url", +] + [[package]] name = "h2" version = "0.1.26" diff --git a/Cargo.toml b/Cargo.toml index 4fd28dd..aa827e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "git-suggested-patch" +name = "github-suggestion" version = "0.0.1" edition = "2018" diff --git a/src/bin/git-sugapply.rs b/src/bin/git-sugapply.rs index 47d26f2..157405d 100644 --- a/src/bin/git-sugapply.rs +++ b/src/bin/git-sugapply.rs @@ -1,7 +1,7 @@ use std::env; use std::process; -use git_suggested_patch::{Client, SuggestionUrl}; +use github_suggestion::{Client, SuggestionUrl}; fn main() { diff --git a/src/bin/git-sugpatch.rs b/src/bin/git-sugpatch.rs index 4b0a24b..0ad8874 100644 --- a/src/bin/git-sugpatch.rs +++ b/src/bin/git-sugpatch.rs @@ -1,7 +1,7 @@ use std::env; use std::process; -use git_suggested_patch::{Client, SuggestionUrl}; +use github_suggestion::{Client, SuggestionUrl}; fn main() { -- cgit v1.2.3