Skip to content

Commit

Permalink
feat: remove redundant nested momento module (momentohq#93)
Browse files Browse the repository at this point in the history
Before this commit, the auth module was in a nested momento module. So,
to access it, you would need to look in `momento::momento::auth`. This
is, frankly, weird and unnecessary. This commit removes the nested
momento module and drops the auth module into the crate root.
  • Loading branch information
swlynch99 authored Jan 25, 2023
1 parent d8c69ef commit 9754fbc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/momento/auth.rs → src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub type LoginActionConsumer = fn(LoginAction) -> EarlyOutActionResult;
/// Initiate a login workflow
/// You need to provide an implementation for the LoginActions.
/// ```rust
/// # use momento::momento::auth::{login, LoginAction, LoginResult};
/// # use momento::auth::{login, LoginAction, LoginResult};
/// # async {
/// let result = login(|action| {
/// match action {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod momento;
pub mod auth;
pub mod response;
pub mod simple_cache_client;

Expand Down
1 change: 0 additions & 1 deletion src/momento/mod.rs

This file was deleted.

0 comments on commit 9754fbc

Please sign in to comment.