aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/gen_program.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling/src/gen_program.rs')
-rw-r--r--mingling/src/gen_program.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/mingling/src/gen_program.rs b/mingling/src/gen_program.rs
index ef32074..90860b6 100644
--- a/mingling/src/gen_program.rs
+++ b/mingling/src/gen_program.rs
@@ -184,7 +184,7 @@ unsafe impl Grouped<ThisProgram> for CompletionSuggest {
}
impl ProgramCollect for ThisProgram {
- type Enum = ThisProgram;
+ type Enum = Self;
type EntryFallback = EntryFallback;
@@ -260,13 +260,15 @@ impl ProgramCollect for ThisProgram {
}
impl ThisProgram {
- /// Create a program through this ProgramCollect.
- pub fn new() -> Program<ThisProgram> {
+ /// Create a program through this `ProgramCollect`.
+ #[must_use]
+ pub fn new() -> Program<Self> {
todo!()
}
/// Get the global singleton of the current program.
- pub fn this() -> &'static Program<ThisProgram> {
+ #[must_use]
+ pub fn this() -> &'static Program<Self> {
todo!()
}
}