Skip to content

Commit fe7def4

Browse files
committed
core: change the naming convention of submodules
1 parent 26023ad commit fe7def4

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

src/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//! Key functionality of the application
22
3-
pub mod front;
4-
mod back;
3+
pub mod api;
4+
mod backend;

src/core/front.rs renamed to src/core/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! Frontend components of the core module, intended to use with the command-line interface
1+
//! Public interface of the core module
22
33
#![allow(clippy::missing_errors_doc)]
44
#![allow(clippy::missing_panics_doc)]
55

6-
use crate::core::back::{
6+
use crate::core::backend::{
77
search_for_repos,
88
exec_async_check
99
};
File renamed without changes.

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mod core;
22
mod utils;
33
mod cli;
44

5-
use crate::core::front::{
5+
use crate::core::api::{
66
scan_dirs,
77
scan_all,
88
list,

tests/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod common;
22

3-
use git_conform::core::front::add;
3+
use git_conform::core::api::add;
44

55
use std::fs;
66
use std::path::Path;

tests/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod common;
22

3-
use git_conform::core::front::{check_repos, check_all};
3+
use git_conform::core::api::{check_repos, check_all};
44
use git_conform::utils::TrackingFile;
55

66
#[tokio::test]

tests/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use git_conform::core::front::list;
1+
use git_conform::core::api::list;
22

33
#[test]
44
fn case_list_empty() {

tests/remove.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod common;
22

3-
use git_conform::core::front::{remove_repos, remove_all};
3+
use git_conform::core::api::{remove_repos, remove_all};
44

55
use std::fs::{self, File};
66
use std::io::Write as _;

tests/scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod common;
22

3-
use git_conform::core::front::{scan_dirs, scan_all};
3+
use git_conform::core::api::{scan_dirs, scan_all};
44

55
use std::fs;
66
use std::path::Path;

0 commit comments

Comments
 (0)