chore (backend-rs): move acct to another directory

This commit is contained in:
naskya 2024-05-11 04:31:59 +09:00
parent eeb09028bd
commit d1b33ad76f
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
4 changed files with 8 additions and 1 deletions

View file

@ -42,6 +42,12 @@ impl fmt::Display for Acct {
}
}
impl Into<String> for Acct {
fn into(self) -> String {
self.to_string()
}
}
#[crate::ts_only_warn("Use `acct.parse().unwrap()` or `Acct::from_str(acct).unwrap()` instead.")]
#[crate::export]
pub fn string_to_acct(acct: &str) -> Acct {

View file

@ -0,0 +1 @@
pub mod acct;

View file

@ -2,6 +2,7 @@ pub use macro_rs::{export, ts_only_warn};
pub mod config;
pub mod database;
pub mod federation;
pub mod misc;
pub mod model;
pub mod service;

View file

@ -1,4 +1,3 @@
pub mod acct;
pub mod add_note_to_antenna;
pub mod check_server_block;
pub mod check_word_mute;