Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[breaking] Technical debt #306

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
.rustdoc_fingerprint.json
config.toml
/snapshots
/tantivy
/tantivy
.DS_Store
113 changes: 57 additions & 56 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cd freedit && cargo build -r

* generate local documentation:
```bash
cargo doc --no-deps --open
cargo doc --no-deps --document-private-items --open
```

## Development
Expand Down
15 changes: 1 addition & 14 deletions src/controller/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ pub(crate) async fn admin_view(
let id = u8_slice_to_u32(&v);
ones.push(format!("name: {name}, id: {id}"));
}
"inns_private" => {
let id = u8_slice_to_u32(&k);
ones.push(format!("id: {id}"));
}
"user_solos" => {
let uid = u8_slice_to_u32(&k[0..4]);
let sid = u8_slice_to_u32(&k[4..8]);
Expand Down Expand Up @@ -264,7 +260,7 @@ pub(crate) async fn admin_view(
let one_fmt = unescape(&format!("{:?}", one)).unwrap();
ones.push(format!("{key}: {one_fmt}"));
}
"feed_errs" | "pub_keys" => {
"feed_errs" => {
let id = ivec_to_u32(&k);
let msg = String::from_utf8_lossy(&v);
ones.push(format!("{id}: {msg}"));
Expand All @@ -280,15 +276,6 @@ pub(crate) async fn admin_view(
let one_fmt = unescape(&format!("{:?}", one)).unwrap();
ones.push(format!("{key}: {one_fmt}"));
}
"home_pages" => {
let uid = u8_slice_to_u32(&k);
ones.push(format!("{uid}: {}", v[0]));
}
"lang" => {
let uid = u8_slice_to_u32(&k);
let lang = String::from_utf8_lossy(&v);
ones.push(format!("{uid}: {lang}"));
}
"tan" => {
let id = String::from_utf8_lossy(&k);
ones.push(format!("{id}: {:?}", v));
Expand Down
Loading