Commit Graph

2573 Commits

Author SHA1 Message Date
Matthias Beyer 7b5d37a039 Fix: Make sure we release the Write-Lock
This was suggested by Marcel Müller, who also debugged this issue and
found that this snippet was the error.

The problem was, that we had the write-lock when starting the hooks. If
the hook runs into an Err() mapping part where the Entry could already
be drop()ed, Rust tries to be smart and drops the object. As we are
still in the creation code of the entry, this paniced as we still hold
the W-Lock and the drop() tryies to call _update() on the entry, which
also tries to W-lock it.

With the new additional scope, the W-lock gets dropped early and we do
not have this problem anymore.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Suggested-by: Marcel Müller <neikos@neikos.email>
Reported-by: Matthias Beyer <mail@beyermatthias.de>
2016-08-01 20:00:31 +02:00
Matthias Beyer d4fa5b7de3 Merge pull request #608 from matthiasbeyer/travis-irc
Add travis setup for IRC notifications
2016-08-01 19:08:31 +02:00
Matthias Beyer 296a0ae8d3 Merge pull request #609 from matthiasbeyer/readme-irc
Add contact information including mail and IRC
2016-08-01 19:08:25 +02:00
Matthias Beyer 3892640109 Add link to website 2016-08-01 16:37:09 +02:00
Matthias Beyer 99289ef8d2 Add travis setup for IRC notifications 2016-08-01 16:36:27 +02:00
Matthias Beyer da9ed22deb Add contact information including mail and IRC 2016-08-01 09:48:25 +02:00
Matthias Beyer 6e988782da Merge pull request #605 from matthiasbeyer/libimagentryfilter/bool-filter
Add BoolFilter
2016-07-31 22:02:43 +02:00
Matthias Beyer 989ee1864a Merge pull request #604 from matthiasbeyer/imag-diary/warnings
Imag diary/warnings
2016-07-31 22:02:37 +02:00
Matthias Beyer 79c1edcbd1 Add BoolFilter 2016-07-31 12:18:07 +02:00
Matthias Beyer dcd72765bc Add deny() macro 2016-07-31 11:13:20 +02:00
Matthias Beyer b613aba257 Remove unused function
We do not offer explicit diary functionality.

Either a user creates a diary implicitely by creating a new entry inside
of it, or not.
2016-07-31 11:13:20 +02:00
Matthias Beyer 7187ad89b1 If an error happens while viewing, trace it 2016-07-31 10:39:43 +02:00
Matthias Beyer c1d41c954e Remove keyword: mut 2016-07-31 10:38:30 +02:00
Matthias Beyer 5cc84c1551 Remove keyword: mut 2016-07-31 10:38:21 +02:00
Matthias Beyer 2b0efee4cc Merge pull request #600 from matthiasbeyer/doc-deps
Add new non-optional dependencies to doc in default.nix
2016-07-31 10:31:14 +02:00
Matthias Beyer fd8d7b2ebb Merge pull request #599 from matthiasbeyer/add-missing-readme-links
Add missing readme links
2016-07-31 10:31:07 +02:00
Matthias Beyer 75f57d622c doc: Fix code listing 2016-07-30 21:36:45 +02:00
Matthias Beyer 34e164e954 doc: Add more description of modules 2016-07-30 21:32:50 +02:00
Matthias Beyer 40d4939f3a doc: Fix up store entry example markup and content 2016-07-30 21:02:21 +02:00
Matthias Beyer 3e4d01a339 Add missing dependency: which 2016-07-30 20:59:49 +02:00
Matthias Beyer bbb5e58583 doc: Fix filename 2016-07-30 20:58:04 +02:00
Matthias Beyer 6f71dc517f doc: Remove comment 2016-07-30 20:57:36 +02:00
Matthias Beyer 9354ae003a doc: Fix bullet-list markup 2016-07-30 20:56:57 +02:00
Matthias Beyer 4e230ecc61 doc: Update version 2016-07-30 20:55:18 +02:00
Matthias Beyer 008f4d0032 Add new non-optional dependencies to doc in default.nix 2016-07-30 20:53:12 +02:00
Matthias Beyer 6981bbdff1 Add link: doc/src/04020-module-ref.md -> imag-ref/README.md 2016-07-30 20:48:31 +02:00
Matthias Beyer 517050588b Add link: doc/src/04020-module-diary.md -> imag-diary/README.md 2016-07-30 20:48:04 +02:00
Matthias Beyer ab91a08179 Add link: doc/src/04020-module-bookmarks.md -> imag-bookmark/README.md 2016-07-30 20:47:05 +02:00
Matthias Beyer 5cd2964fe3 Merge pull request #598 from asuivelentine/imag-notes/warnings
removed warnings
2016-07-30 20:16:17 +02:00
Matthias Beyer a559fdff07 Merge pull request #597 from asuivelentine/imag-view/refactor
shorten exit on error
2016-07-30 20:15:57 +02:00
Kai Sickeler 34ea40381f removed warnings 2016-07-30 19:21:07 +02:00
Kai Sickeler 6e56653c8e shorten exit on error 2016-07-30 19:12:29 +02:00
Matthias Beyer 6a8c93ee52 Merge pull request #594 from matthiasbeyer/libimagutil/debug-mapping
Add utility to print debugging information while mapping
2016-07-30 15:28:45 +02:00
Matthias Beyer 5a68c05ca5 Merge pull request #595 from matthiasbeyer/update-readme
Update README
2016-07-30 15:28:03 +02:00
Matthias Beyer e9e9950db7 Update README 2016-07-30 12:36:23 +02:00
Matthias Beyer d050be4cbc Refactor, generate code with macro 2016-07-30 11:57:42 +02:00
Matthias Beyer deb1544bc5 Add info_result 2016-07-30 11:45:31 +02:00
Matthias Beyer 0b1ea94dae Add utility to print debugging information while mapping 2016-07-29 16:49:45 +02:00
Matthias Beyer 9a9a1b7ecd Merge pull request #592 from matthiasbeyer/quiet-travis
Quiet travis
2016-07-29 10:29:44 +02:00
Matthias Beyer 59afb5b9d0 Merge pull request #581 from impo/libimagerror/deny-warnings
libimagerror: Deny warnings
2016-07-29 10:25:19 +02:00
Matthias Beyer b2c11384c0 Merge pull request #586 from asuivelentine/libimagstore/debug
Implement Debug for FileLockEntry, do not derive it
2016-07-28 14:42:55 +02:00
Matthias Beyer 0e78081918 Merge pull request #587 from matthiasbeyer/libimagrt/imagrc-location
Search for imagrc in RTP and not in RTP/store
2016-07-28 14:42:30 +02:00
Matthias Beyer 4dce62030a Merge pull request #588 from asuivelentine/libimagcounter/refactor
Libimagcounter/refactor
2016-07-28 14:41:53 +02:00
Matthias Beyer c7b9de3bbd travis: try to remove "tree" call 2016-07-28 14:39:10 +02:00
Matthias Beyer 0ec5117b5a travis: Dont call cargo with --verbose flag 2016-07-28 14:37:59 +02:00
Matthias Beyer 49cd0d0476 Merge pull request #589 from matthiasbeyer/imag-documentation
Imag (library) documentation
2016-07-28 14:36:14 +02:00
Gavin Thomas Claugus 6578abdf3d libimagerror: Eliminate unused imports
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-07-28 08:34:50 -04:00
Gavin Thomas Claugus 014a40c9df libimagerror: Deny warnings
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-07-28 08:34:50 -04:00
Kai Sickeler da432f5b07 Replaced unwrap with try! 2016-07-27 20:19:35 +02:00
Kai Sickeler 47d2a7703c shorten header reading with header function 2016-07-27 19:54:03 +02:00