Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Reformat everything
  • Loading branch information
awwaiid committed Sep 21, 2025
commit d69acdb3a83405e49cf35d9c123af10fcd852de5
18 changes: 18 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,24 @@ cross build --release --target=aarch64-unknown-linux-gnu
./build.sh rmpp
```

### Code Quality and Formatting
```bash
# Format code with rustfmt
cargo fmt

# Check formatting without applying changes
cargo fmt -- --check

# Run clippy linting
cargo clippy

# Run clippy with stricter warnings
cargo clippy -- -D warnings

# Check code compiles
cargo check --all-targets --all-features
```

### Testing and Evaluation
```bash
# Run evaluation suite across multiple models and configurations
Expand Down
149 changes: 139 additions & 10 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ rust-embed = { version = "8.5.0", features = ["include-exclude", "compression"]
env_logger = "0.11.6"
log = "0.4.22"

[dev-dependencies]
clippy = "0.0.302"

[lib]
name = "ghostwriter"
path = "src/lib.rs"
Expand Down
4 changes: 1 addition & 3 deletions src/embedded_assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ pub fn load_config(filename: &str) -> String {
if std::path::Path::new(filename).exists() {
std::fs::read_to_string(filename).unwrap()
} else {
std::str::from_utf8(AssetPrompts::get(filename).unwrap().data.as_ref())
.unwrap()
.to_string()
std::str::from_utf8(AssetPrompts::get(filename).unwrap().data.as_ref()).unwrap().to_string()
}
}
Loading