Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT"
description = "A tool that reminds you to commit with the correct email address"
repository = "https://github.com/mkqavi/commit-email"
readme = "README.md"
edition = "2021"
edition = "2024"
Comment thread
mkqavi marked this conversation as resolved.

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Config {
return Err(anyhow::Error::from(io::Error::new(
io::ErrorKind::NotFound,
"Could not find the config directory",
)))
)));
}
};

Expand Down
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use anyhow::{bail, Result};
use anyhow::{Result, bail};
use config::Config;
use cursive::Cursive;
use cursive::event::Key;
use cursive::views::{Dialog, SelectView};
use cursive::Cursive;
use repo::Repo;
use scp::ScpPath;
use std::env;
Expand Down Expand Up @@ -31,10 +31,10 @@ fn main() -> Result<()> {

let config_url = repo.get_remote_url();

if let Some(url) = &config_url {
if config.ignores(url) {
return Ok(());
}
if let Some(url) = &config_url
&& config.ignores(url)
{
return Ok(());
Comment thread
mkqavi marked this conversation as resolved.
}

if repo.get_local_email().is_some() {
Expand Down
2 changes: 1 addition & 1 deletion src/repo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{repo_error::RepoError, ScpPath};
use crate::{ScpPath, repo_error::RepoError};
use git2::{Config, ConfigLevel, Repository};
use std::{
path::Path,
Expand Down
2 changes: 1 addition & 1 deletion src/scp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use anyhow::{anyhow, Result};
use anyhow::{Result, anyhow};
use regex::Regex;
use serde::{Deserialize, Serialize};
use std::str::FromStr;
Expand Down