Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorbgr committed Apr 2, 2024
1 parent ea03873 commit 738cef0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions wayland-backend/tests/rs_sys_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// For example, assume you want to make sure both the rust and sys versions of `ObjectId` implement [`Debug`].
/// The following pattern would achieve that check.
///
/// ```
/// ```no_run
/// #[test]
/// fn test() {
/// assert_impl!(server::ObjectId: std::fmt::Debug);
Expand All @@ -19,7 +19,7 @@
///
/// Multiple traits may be tested by separating each trait with a comma.
///
/// ```
/// ```no_run
/// #[test]
/// fn test() {
/// assert_impl!(server::ObjectId: std::fmt::Debug, Send, Sync);
Expand All @@ -28,7 +28,7 @@
///
/// For the client side, simply change the path before the name of the type.
///
/// ```
/// ```no_run
/// #[test]
/// fn test() {
/// assert_impl!(client::ObjectId: std::fmt::Debug)
Expand All @@ -47,7 +47,7 @@
/// Finally, generics may also be tested by simply adding the generics as expected in a normal type. Do note
/// you will need to monomorphize the type with something, such as, `()`, the unit type.
///
/// ```
/// ```no_run
/// #[test]
/// fn test() {
/// assert_impl!(server::Backend<()>: Send, Sync); // No trait
Expand Down
2 changes: 1 addition & 1 deletion wayland-server/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ impl ListeningSocket {
// open the lockfile
_lock = File::options()
.create(true)
.truncate(true)
.read(true)
.write(true)
.truncate(true)
.mode(0o660)
.open(&lock_path)
.map_err(|_| BindError::PermissionDenied)?;
Expand Down

0 comments on commit 738cef0

Please sign in to comment.