From ca86952c1486b7f2313fef62e6cacf36e248efd2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 13 Jul 2024 16:26:28 +0200 Subject: refactor: move & rename all mod.rs files --- examples/async/animals.rs | 3 +++ examples/async/animals/mod.rs | 3 --- examples/async/interfaces.rs | 4 ++++ examples/async/interfaces/mod.rs | 4 ---- examples/basic/animals.rs | 3 +++ examples/basic/animals/mod.rs | 3 --- examples/basic/interfaces.rs | 3 +++ examples/basic/interfaces/mod.rs | 3 --- examples/factory/interfaces.rs | 2 ++ examples/factory/interfaces/mod.rs | 2 -- examples/generics/interfaces.rs | 1 + examples/generics/interfaces/mod.rs | 1 - examples/named/interfaces.rs | 2 ++ examples/named/interfaces/mod.rs | 2 -- examples/with-3rd-party/interfaces.rs | 1 + examples/with-3rd-party/interfaces/mod.rs | 1 - 16 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 examples/async/animals.rs delete mode 100644 examples/async/animals/mod.rs create mode 100644 examples/async/interfaces.rs delete mode 100644 examples/async/interfaces/mod.rs create mode 100644 examples/basic/animals.rs delete mode 100644 examples/basic/animals/mod.rs create mode 100644 examples/basic/interfaces.rs delete mode 100644 examples/basic/interfaces/mod.rs create mode 100644 examples/factory/interfaces.rs delete mode 100644 examples/factory/interfaces/mod.rs create mode 100644 examples/generics/interfaces.rs delete mode 100644 examples/generics/interfaces/mod.rs create mode 100644 examples/named/interfaces.rs delete mode 100644 examples/named/interfaces/mod.rs create mode 100644 examples/with-3rd-party/interfaces.rs delete mode 100644 examples/with-3rd-party/interfaces/mod.rs (limited to 'examples') diff --git a/examples/async/animals.rs b/examples/async/animals.rs new file mode 100644 index 0000000..5444978 --- /dev/null +++ b/examples/async/animals.rs @@ -0,0 +1,3 @@ +pub mod cat; +pub mod dog; +pub mod human; diff --git a/examples/async/animals/mod.rs b/examples/async/animals/mod.rs deleted file mode 100644 index 5444978..0000000 --- a/examples/async/animals/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub mod cat; -pub mod dog; -pub mod human; diff --git a/examples/async/interfaces.rs b/examples/async/interfaces.rs new file mode 100644 index 0000000..ea0a26d --- /dev/null +++ b/examples/async/interfaces.rs @@ -0,0 +1,4 @@ +pub mod cat; +pub mod dog; +pub mod food; +pub mod human; diff --git a/examples/async/interfaces/mod.rs b/examples/async/interfaces/mod.rs deleted file mode 100644 index ea0a26d..0000000 --- a/examples/async/interfaces/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub mod cat; -pub mod dog; -pub mod food; -pub mod human; diff --git a/examples/basic/animals.rs b/examples/basic/animals.rs new file mode 100644 index 0000000..5444978 --- /dev/null +++ b/examples/basic/animals.rs @@ -0,0 +1,3 @@ +pub mod cat; +pub mod dog; +pub mod human; diff --git a/examples/basic/animals/mod.rs b/examples/basic/animals/mod.rs deleted file mode 100644 index 5444978..0000000 --- a/examples/basic/animals/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub mod cat; -pub mod dog; -pub mod human; diff --git a/examples/basic/interfaces.rs b/examples/basic/interfaces.rs new file mode 100644 index 0000000..5444978 --- /dev/null +++ b/examples/basic/interfaces.rs @@ -0,0 +1,3 @@ +pub mod cat; +pub mod dog; +pub mod human; diff --git a/examples/basic/interfaces/mod.rs b/examples/basic/interfaces/mod.rs deleted file mode 100644 index 5444978..0000000 --- a/examples/basic/interfaces/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub mod cat; -pub mod dog; -pub mod human; diff --git a/examples/factory/interfaces.rs b/examples/factory/interfaces.rs new file mode 100644 index 0000000..2342750 --- /dev/null +++ b/examples/factory/interfaces.rs @@ -0,0 +1,2 @@ +pub mod user; +pub mod user_manager; diff --git a/examples/factory/interfaces/mod.rs b/examples/factory/interfaces/mod.rs deleted file mode 100644 index 2342750..0000000 --- a/examples/factory/interfaces/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod user; -pub mod user_manager; diff --git a/examples/generics/interfaces.rs b/examples/generics/interfaces.rs new file mode 100644 index 0000000..3f31bdf --- /dev/null +++ b/examples/generics/interfaces.rs @@ -0,0 +1 @@ +pub mod printer; diff --git a/examples/generics/interfaces/mod.rs b/examples/generics/interfaces/mod.rs deleted file mode 100644 index 3f31bdf..0000000 --- a/examples/generics/interfaces/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod printer; diff --git a/examples/named/interfaces.rs b/examples/named/interfaces.rs new file mode 100644 index 0000000..6a0108d --- /dev/null +++ b/examples/named/interfaces.rs @@ -0,0 +1,2 @@ +pub mod ninja; +pub mod weapon; diff --git a/examples/named/interfaces/mod.rs b/examples/named/interfaces/mod.rs deleted file mode 100644 index 6a0108d..0000000 --- a/examples/named/interfaces/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod ninja; -pub mod weapon; diff --git a/examples/with-3rd-party/interfaces.rs b/examples/with-3rd-party/interfaces.rs new file mode 100644 index 0000000..c060c34 --- /dev/null +++ b/examples/with-3rd-party/interfaces.rs @@ -0,0 +1 @@ +pub mod ninja; diff --git a/examples/with-3rd-party/interfaces/mod.rs b/examples/with-3rd-party/interfaces/mod.rs deleted file mode 100644 index c060c34..0000000 --- a/examples/with-3rd-party/interfaces/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod ninja; -- cgit v1.2.3-18-g5258