chore (backend-rs): move acct to another directory
This commit is contained in:
parent
eeb09028bd
commit
d1b33ad76f
4 changed files with 8 additions and 1 deletions
|
@ -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 {
|
1
packages/backend-rs/src/federation/mod.rs
Normal file
1
packages/backend-rs/src/federation/mod.rs
Normal file
|
@ -0,0 +1 @@
|
|||
pub mod acct;
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
pub mod acct;
|
||||
pub mod add_note_to_antenna;
|
||||
pub mod check_server_block;
|
||||
pub mod check_word_mute;
|
||||
|
|
Loading…
Reference in a new issue