Commit graph

2573 commits

Author SHA1 Message Date
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
d4fa5b7de3 Merge pull request #608 from matthiasbeyer/travis-irc
Add travis setup for IRC notifications
2016-08-01 19:08:31 +02:00
296a0ae8d3 Merge pull request #609 from matthiasbeyer/readme-irc
Add contact information including mail and IRC
2016-08-01 19:08:25 +02:00
3892640109 Add link to website 2016-08-01 16:37:09 +02:00
99289ef8d2 Add travis setup for IRC notifications 2016-08-01 16:36:27 +02:00
da9ed22deb Add contact information including mail and IRC 2016-08-01 09:48:25 +02:00
6e988782da Merge pull request #605 from matthiasbeyer/libimagentryfilter/bool-filter
Add BoolFilter
2016-07-31 22:02:43 +02:00
989ee1864a Merge pull request #604 from matthiasbeyer/imag-diary/warnings
Imag diary/warnings
2016-07-31 22:02:37 +02:00
79c1edcbd1 Add BoolFilter 2016-07-31 12:18:07 +02:00
dcd72765bc Add deny() macro 2016-07-31 11:13:20 +02:00
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
7187ad89b1 If an error happens while viewing, trace it 2016-07-31 10:39:43 +02:00
c1d41c954e Remove keyword: mut 2016-07-31 10:38:30 +02:00
5cc84c1551 Remove keyword: mut 2016-07-31 10:38:21 +02:00
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
fd8d7b2ebb Merge pull request #599 from matthiasbeyer/add-missing-readme-links
Add missing readme links
2016-07-31 10:31:07 +02:00
75f57d622c doc: Fix code listing 2016-07-30 21:36:45 +02:00
34e164e954 doc: Add more description of modules 2016-07-30 21:32:50 +02:00
40d4939f3a doc: Fix up store entry example markup and content 2016-07-30 21:02:21 +02:00
3e4d01a339 Add missing dependency: which 2016-07-30 20:59:49 +02:00
bbb5e58583 doc: Fix filename 2016-07-30 20:58:04 +02:00
6f71dc517f doc: Remove comment 2016-07-30 20:57:36 +02:00
9354ae003a doc: Fix bullet-list markup 2016-07-30 20:56:57 +02:00
4e230ecc61 doc: Update version 2016-07-30 20:55:18 +02:00
008f4d0032 Add new non-optional dependencies to doc in default.nix 2016-07-30 20:53:12 +02:00
6981bbdff1 Add link: doc/src/04020-module-ref.md -> imag-ref/README.md 2016-07-30 20:48:31 +02:00
517050588b Add link: doc/src/04020-module-diary.md -> imag-diary/README.md 2016-07-30 20:48:04 +02:00
ab91a08179 Add link: doc/src/04020-module-bookmarks.md -> imag-bookmark/README.md 2016-07-30 20:47:05 +02:00
5cd2964fe3 Merge pull request #598 from asuivelentine/imag-notes/warnings
removed warnings
2016-07-30 20:16:17 +02:00
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
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
5a68c05ca5 Merge pull request #595 from matthiasbeyer/update-readme
Update README
2016-07-30 15:28:03 +02:00
e9e9950db7 Update README 2016-07-30 12:36:23 +02:00
d050be4cbc Refactor, generate code with macro 2016-07-30 11:57:42 +02:00
deb1544bc5 Add info_result 2016-07-30 11:45:31 +02:00
0b1ea94dae Add utility to print debugging information while mapping 2016-07-29 16:49:45 +02:00
9a9a1b7ecd Merge pull request #592 from matthiasbeyer/quiet-travis
Quiet travis
2016-07-29 10:29:44 +02:00
59afb5b9d0 Merge pull request #581 from impo/libimagerror/deny-warnings
libimagerror: Deny warnings
2016-07-29 10:25:19 +02:00
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
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
4dce62030a Merge pull request #588 from asuivelentine/libimagcounter/refactor
Libimagcounter/refactor
2016-07-28 14:41:53 +02:00
c7b9de3bbd travis: try to remove "tree" call 2016-07-28 14:39:10 +02:00
0ec5117b5a travis: Dont call cargo with --verbose flag 2016-07-28 14:37:59 +02:00
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