Skip to content

Commit

Permalink
Fix for 'cargo test' (#114)
Browse files Browse the repository at this point in the history
* fixes for 'cargo test' & bump flake.lock due to outdated cargo

* commit to pass `cargo fmt -- --check` test

* add `cargo test` to Makefile

---------

Co-authored-by: id3v1669 <[email protected]>
  • Loading branch information
id3v1669 and id3v1669 authored Feb 8, 2025
1 parent b52532a commit 0088b11
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ MAN7_DIR := /usr/share/man/man7
all: build

build:
@cargo test
@cargo build $(BUILDFLAGS)

run:
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

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

3 changes: 2 additions & 1 deletion libwayshot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ use gbm::{BufferObject, BufferObjectFlags, Device as GBMDevice};
/// Struct to store wayland connection and globals list.
/// # Example usage
///
/// ```
/// ```ignore
/// use libwayshot::WayshotConnection;
/// let wayshot_connection = WayshotConnection::new()?;
/// let image_buffer = wayshot_connection.screenshot_all()?;
/// ```
Expand Down
2 changes: 1 addition & 1 deletion libwayshot/src/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct LogicalRegion {
///
/// Example:
///
/// ````
/// ````ignore
/// ┌─────────────┐
/// │ │
/// │ ┌──────────┼──────┐
Expand Down

0 comments on commit 0088b11

Please sign in to comment.